diff options
author | Ralph Amissah <ralph@amissah.com> | 2008-09-10 21:24:31 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2008-09-10 21:24:31 -0400 |
commit | 291080c0495f59f031bf5c0de2482f1bc7df59f2 (patch) | |
tree | 6e8a1d334be8979f5c9e77687e2ec8ee7fc633b2 /lib/sisu/v0/shared_xml.rb | |
parent | book index, sample html file and to screen sisu markup sample added (-M flag) (diff) |
primarily on book index where (markup) provided
* book index, html, tex/pdf, xml
* texpdf no ocn if ocn is 0
* odf, plaintext, if book index? remove ... do other outputs for which not relevant
* concordance, better matches
* constants, dal special character for hardspace changed as (ruby) regx bug in replacing it in xml, odd but move on
Note: to fix html seg headers for endnotes and for index
Diffstat (limited to 'lib/sisu/v0/shared_xml.rb')
-rw-r--r-- | lib/sisu/v0/shared_xml.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/sisu/v0/shared_xml.rb b/lib/sisu/v0/shared_xml.rb index bf59830f..41e8c393 100644 --- a/lib/sisu/v0/shared_xml.rb +++ b/lib/sisu/v0/shared_xml.rb @@ -423,13 +423,11 @@ module SiSU_XML_munge %{\\1#{@url_brace.xml_open}<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="\\2">\\2</link>#{@url_brace.xml_close}\\3}) para.gsub!(/\b[_\\]((?:https?|file|ftp):\/\/\S+?\.[^'"><\s]+?)([;.,]?(?:\s|$))/, '<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="\1">\1</link>\2') #escaped urls not linked, deal with later - para.gsub!(/ |#{Mx[:nbsp]}/,' ') - #para.gsub!(/ /,' ') #clean else para.gsub!(/(^|[^}])_</m,'\1<'); para.gsub!(/(^|[^}])_>/m,'\1>') #code-block: angle brackets special characters para.gsub!(/(^|[^}])_</m,'\1<'); para.gsub!(/(^|[^}])_>/m,'\1>') - para.gsub!(/ |#{Mx[:nbsp]}/,' ') end + para.gsub!(/ |#{Mx[:nbsp]}/m,' ') para end def markup_light(para='') |