aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/html_format_css.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2008-07-22 20:00:59 -0400
committerRalph Amissah <ralph@amissah.com>2008-07-22 20:00:59 -0400
commitd29a3e5469d8468084641c385ebf16948f7c2437 (patch)
tree1a2306de3c5c1055dbc0374b95f31c335f5da85c /lib/sisu/v0/html_format_css.rb
parentaction response query fix (diff)
sisu-0.68.0 proposed
* middle layer document representation changed, (accounting for substantial patch) * texpdf multiple document sizes as specified in config * numerous small fixes [should on the whole be easier to maintain]
Diffstat (limited to 'lib/sisu/v0/html_format_css.rb')
-rw-r--r--lib/sisu/v0/html_format_css.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v0/html_format_css.rb b/lib/sisu/v0/html_format_css.rb
index db381e63..ace6983b 100644
--- a/lib/sisu/v0/html_format_css.rb
+++ b/lib/sisu/v0/html_format_css.rb
@@ -352,10 +352,10 @@ module SiSU_HTML_Format_type
else @one
end
note=''
- if one =~/(~[{\[].+?[}\]]~\s*)/m #this is a clumsy fix, revisit and address upstream
+ if one =~/((?:#{Mx[:en_a_o]}|#{Mx[:en_b_o]}).+?(?:#{Mx[:en_a_c]}|#{Mx[:en_b_c]})\s*)/m #this is a clumsy fix, revisit and address upstream
note=$1
note.gsub!(/[\n\s]+/m,' ')
- one.gsub!(/~[{\[].+?[}\]]~\s*/m,' ')
+ one.gsub!(/(?:#{Mx[:en_a_o]}|#{Mx[:en_b_o]}).+?(?:#{Mx[:en_a_c]}|#{Mx[:en_b_c]})\s*/m,' ')
one.gsub!(/<a[\n\s]+name="-\d+"[\n\s]+href="#_\d+">&nbsp;<sup>\d+<\/sup>&nbsp;/m,'')
end
%{<#@tag class="#@class">
@@ -384,7 +384,7 @@ module SiSU_HTML_Format_type
#{@vz.table_close}}
end
def header_sub
- @parablock.gsub!(/~[{\[].+?[}\]]~\s*/m,' ')
+ @parablock.gsub!(/(?:#{Mx[:en_a_o]}|#{Mx[:en_b_o]}).+?(?:#{Mx[:en_a_c]}|#{Mx[:en_b_c]})\s*/m,' ')
%{#{@vz.margin_css}
#{@headname}
<#@tag class="#@class" #{@p_num.id}>#{@p_num.name}