diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-05-12 11:22:06 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-05-12 11:22:06 +0200 |
commit | e0881f985d558a1084ccc1c50702c4867b94f4c1 (patch) | |
tree | dc3ebf206ef31addb773bbb31b27e9ebc7718010 /program | |
parent | d41367492dbbd7fdb074cd1374044917fc2e82df (diff) |
Disable wrapping non-flowed lines on dash character
Diffstat (limited to 'program')
-rw-r--r-- | program/lib/Roundcube/rcube_text2html.php | 3 |
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, '-⁠'), $text); } return $text; |