Link to maintainership/funding post
[grauphel.git] / lib / converter / cleanhtml.php
index 6c5dabf73518807598d7f9244c054d887045da4d..6ee34313d74715ca7fa39f9e4a2f1c1ec6537b3c 100644 (file)
@@ -34,7 +34,6 @@ class CleanHtml extends Html
         'list-item' => 'li',
         'bold'      => 'b',
         'italic'    => 'i',
-        'monospace' => 'tt',
 
         'size:large' => 'h3',
         'size:huge'  => 'h2',
@@ -47,6 +46,10 @@ class CleanHtml extends Html
         'size:small' => 'small',
     );
 
+    protected static $styleMap = array(
+        'monospace' => 'font-family:monospace; white-space: pre-wrap'
+    );
+
     /**
      * Converts the tomboy note XML into HTML.
      * Cleans HTML a bit up after it has been generated with the clean tags.