X-Git-Url: https://git.cweiske.de/grauphel.git/blobdiff_plain/1a5b0cd1539c149d18db4e40f16c56654cace898..HEAD:/lib/converter/html.php diff --git a/lib/converter/html.php b/lib/converter/html.php index 11cf105..c777cad 100644 --- a/lib/converter/html.php +++ b/lib/converter/html.php @@ -134,6 +134,15 @@ class Html extends Base if ($nesting[0] != 'monospace') { $text = nl2br($text); } + $text = preg_replace_callback( + "#^\t+#m", + function ($matches) { + return str_repeat( + ' ', strlen($matches[0]) * 8 + ); + }, + $text + ); $store .= $text; break; default: