aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/html_tune.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2008-09-05 01:24:49 -0400
committerRalph Amissah <ralph@amissah.com>2008-09-05 01:24:49 -0400
commit9432d0345a982f2c64c684cc913b704cca5660f5 (patch)
tree969e72c8a68a9f01a6ab3c1e05e8d72697ca9fe5 /lib/sisu/v0/html_tune.rb
parentdal, bullet footnotes fix (check numbered bullets, should also be ok) (diff)
character given to represent non-break space in internal code (dal, constants and affected downstream code)
Diffstat (limited to 'lib/sisu/v0/html_tune.rb')
-rw-r--r--lib/sisu/v0/html_tune.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sisu/v0/html_tune.rb b/lib/sisu/v0/html_tune.rb
index f06b8764..99f2d7f4 100644
--- a/lib/sisu/v0/html_tune.rb
+++ b/lib/sisu/v0/html_tune.rb
@@ -245,6 +245,7 @@ module SiSU_Tune
para.gsub!(/#{Mx[:fa_cite_o]}(.+?)#{Mx[:fa_cite_c]}/,'<cite>\1</cite>')
para.gsub!(/#{Mx[:fa_strike_o]}(.+?)#{Mx[:fa_strike_c]}/,'<del>\1</del>')
para.gsub!(/#{Mx[:mk_o]}:name#(\S+?)#{Mx[:mk_c]}/,'<a name="\1"></a>')
+ para.gsub!(/#{Mx[:nbsp]}/,'&nbsp;')
para.gsub!(/<(p|br)>/,'<\1 />')
para=SiSU_Tune::Clean_html.new(para).clean
@tuned_file << para