aboutsummaryrefslogtreecommitdiff
path: root/lib/converter/cleanhtml.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2015-06-04 07:49:14 +0200
committerChristian Weiske <cweiske@cweiske.de>2015-06-04 07:49:14 +0200
commit3e641e2596a5afbbd2aa06be56f1f1193fe6021a (patch)
tree29924c120d9a3c5a3aa9f7e02324ac1246719e7e /lib/converter/cleanhtml.php
parent6d583b12847a04b3d49eb2b10c52028ba19f9e4f (diff)
downloadgrauphel-3e641e2596a5afbbd2aa06be56f1f1193fe6021a.tar.gz
grauphel-3e641e2596a5afbbd2aa06be56f1f1193fe6021a.zip
Fix bug #19: Tabs ignored in HTML export
Diffstat (limited to 'lib/converter/cleanhtml.php')
-rw-r--r--lib/converter/cleanhtml.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/converter/cleanhtml.php b/lib/converter/cleanhtml.php
index 6c5dabf..6ee3431 100644
--- a/lib/converter/cleanhtml.php
+++ b/lib/converter/cleanhtml.php
@@ -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.