diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-01-05 21:53:52 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-01-05 21:53:52 -0500 |
commit | 65adfcc0343ed43c5c646d9fc8707f5e4ba8e477 (patch) | |
tree | 237703d730f222e9e42cb03259eac32c6c81b34f /lib/sisu/v3/shared_txt.rb | |
parent | debian/changelog (4.0.0-1) [posted to experimental, awaiting Wheezy freeze end] (diff) | |
parent | date 2013: version & changelog; headers bin/sisu & lib/; code constants.rb (diff) |
Merge tag 'sisu_4.0.1' into debian/sid
Diffstat (limited to 'lib/sisu/v3/shared_txt.rb')
-rw-r--r-- | lib/sisu/v3/shared_txt.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v3/shared_txt.rb b/lib/sisu/v3/shared_txt.rb index 228109c1..dbd4ac21 100644 --- a/lib/sisu/v3/shared_txt.rb +++ b/lib/sisu/v3/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 |