summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_text2html.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-05-12 11:22:06 +0200
committerAleksander Machniak <alec@alec.pl>2014-05-12 11:22:06 +0200
commite0881f985d558a1084ccc1c50702c4867b94f4c1 (patch)
treedc3ebf206ef31addb773bbb31b27e9ebc7718010 /program/lib/Roundcube/rcube_text2html.php
parentd41367492dbbd7fdb074cd1374044917fc2e82df (diff)
Disable wrapping non-flowed lines on dash character
Diffstat (limited to 'program/lib/Roundcube/rcube_text2html.php')
-rw-r--r--program/lib/Roundcube/rcube_text2html.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_text2html.php b/program/lib/Roundcube/rcube_text2html.php
index 9ca3f960f..e0502c42b 100644
--- a/program/lib/Roundcube/rcube_text2html.php
+++ b/program/lib/Roundcube/rcube_text2html.php
@@ -275,7 +275,8 @@ class rcube_text2html
$text = $copy;
}
else {
- $text = str_replace(' ', $nbsp, $text);
+ // make the whole line non-breakable
+ $text = str_replace(array(' ', '-'), array($nbsp, '-&#8288;'), $text);
}
return $text;