diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-03-22 20:08:09 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-03-22 20:08:09 -0400 |
commit | 804d1054c375bb6e6887c8d61ac5135a3449b552 (patch) | |
tree | 7ac422beb9093ba7030040f41f45fe564216c53a | |
parent | sha256 for 2.0.2 (diff) |
odf, shared_xml, texpdf: grouped bulleted text
-rw-r--r-- | lib/sisu/v2/odf.rb | 5 | ||||
-rw-r--r-- | lib/sisu/v2/shared_xml.rb | 3 | ||||
-rw-r--r-- | lib/sisu/v2/texpdf.rb | 1 |
3 files changed, 8 insertions, 1 deletions
diff --git a/lib/sisu/v2/odf.rb b/lib/sisu/v2/odf.rb index c51eab90..d4aeb616 100644 --- a/lib/sisu/v2/odf.rb +++ b/lib/sisu/v2/odf.rb @@ -418,10 +418,13 @@ module SiSU_ODF dob.obj=para_array.join(' ') dob.obj=dob.obj.strip end - if dob.obj =~/#{Mx[:gr_o]}code#{Mx[:gr_c]}/ #fix #code-block: angle brackets special characters #fix + if dob.is=='code' #{Mx[:gr_o]}code#{Mx[:gr_c]}/ #fix #code-block: angle brackets special characters #fix dob.obj.gsub!(/(^|[^}])_</m,'\1<'); dob.obj.gsub!(/(^|[^}])_>/m,'\1>') dob.obj.gsub!(/(^|[^}])_</m,'\1<'); dob.obj.gsub!(/(^|[^}])_>/m,'\1>') end + if dob.of=='group' + dob.obj.gsub!(/#{Mx[:gl_bullet]}/,'● ') + end dob.obj.gsub!(/#{Mx[:fa_strike_o]}(.+?)#{Mx[:fa_strike_c]}/,'<del>\1</del>') dob.obj.gsub!(/#{Mx[:fa_insert_o]}(.+?)#{Mx[:fa_insert_c]}/,'<ins>\1</ins>') dob.obj.gsub!(/#{Mx[:fa_cite_o]}(.+?)#{Mx[:fa_cite_c]}/,'<cite>\1</cite>') diff --git a/lib/sisu/v2/shared_xml.rb b/lib/sisu/v2/shared_xml.rb index d70e0808..8a58909b 100644 --- a/lib/sisu/v2/shared_xml.rb +++ b/lib/sisu/v2/shared_xml.rb |