From e0881f985d558a1084ccc1c50702c4867b94f4c1 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 12 May 2014 11:22:06 +0200 Subject: Disable wrapping non-flowed lines on dash character --- program/lib/Roundcube/rcube_text2html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3