aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v4/shared_txt.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v4/shared_txt.rb')
-rw-r--r--lib/sisu/v4/shared_txt.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v4/shared_txt.rb b/lib/sisu/v4/shared_txt.rb
index 6876dabd..8f3d95b8 100644
--- a/lib/sisu/v4/shared_txt.rb
+++ b/lib/sisu/v4/shared_txt.rb
@@ -8,7 +8,7 @@
* Author: Ralph Amissah
* Copyright: (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- 2007, 2008, 2009, 2010, 2011, 2012 Ralph Amissah, All Rights Reserved.
+ 2007, 2008, 2009, 2010, 2011, 2012, 2013 Ralph Amissah, All Rights Reserved.
* License: GPL 3 or later:
@@ -69,9 +69,9 @@ module SiSU_TextUtils
line=0
out=[]
out[line]=''
- @para=@para.gsub(/<br>/,' <br> ').
+ @para=@para.gsub(/<br>/,' \\ ').
gsub(/#{Mx[:br_nl]}/,"\n\n")
- words=@para.scan(/\n\n|<br>|\S+/m)
+ words=@para.scan(/\n\n|\s+\\\s+|<br>|\S+/m)
while words != ''
word=words.shift
if not word