diff options
author | Ralph Amissah <ralph@amissah.com> | 2014-07-15 18:41:30 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2014-07-15 18:41:30 -0400 |
commit | 84fcc4fb34a41303b4e87aec0e486ec5c3864b64 (patch) | |
tree | 1277461e0d1cfa591e28e63351851437bb6c89d0 /lib/sisu/v5/xml_shared.rb | |
parent | v5 v6: src, sisupod, bring back in line (diff) |
v5 v6: docbook, code & other blocks markup
Diffstat (limited to 'lib/sisu/v5/xml_shared.rb')
-rw-r--r-- | lib/sisu/v5/xml_shared.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sisu/v5/xml_shared.rb b/lib/sisu/v5/xml_shared.rb index f1113495..5670f68d 100644 --- a/lib/sisu/v5/xml_shared.rb +++ b/lib/sisu/v5/xml_shared.rb @@ -485,7 +485,10 @@ module SiSU_XML_Munge gsub(/#{Mx[:nbsp]}/,' '). # not available gsub(/<(p|br)>/,'<\1 />') dob.obj=clean(dob.obj) - else # codeblock + elsif dob.is == :code + dob.obj=dob.obj.gsub(/&/m,'&'). #sort + gsub(/</,'<').gsub(/>/,'>') + else # p dob.is ?? end dob end |