aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/xml_tables.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v0/xml_tables.rb')
-rw-r--r--lib/sisu/v0/xml_tables.rb38
1 files changed, 19 insertions, 19 deletions
diff --git a/lib/sisu/v0/xml_tables.rb b/lib/sisu/v0/xml_tables.rb
index bc045837..be8c1dd1 100644
--- a/lib/sisu/v0/xml_tables.rb
+++ b/lib/sisu/v0/xml_tables.rb
@@ -87,9 +87,9 @@ module SiSU_Tables
m=@parablock[/<!f(.+?)!>/,1]
@@tablefoot << m if m
@parablock.gsub!(/<!f.+?!>/,'')
- @@tablehead=1 if @parablock =~/<!Th¡/
- if @parablock =~/<!Th?¡/
- @parablock.gsub!(/<!Th?¡.+?!~(\d+);\w\d+;\w\d+>/,
+ @@tablehead=1 if @parablock =~/<!Th¡/u
+ if @parablock =~/<!Th?¡/u
+ @parablock.gsub!(/<!Th?¡.+?!~(\d+);\w\d+;\w\d+>/u,
%{\n<ocn>#@ocn</ocn><table summary="normal text css" width="100%" border="0" bgcolor="white" cellpadding="2" align="center">})
end
if @parablock =~/<!TZ!>/
@@ -101,12 +101,12 @@ module SiSU_Tables
@parablock.gsub!(/<!TZ!>\s*/,"</table>\n")
end
if @@tablehead == 1
- if @parablock =~/¡¡/
- @parablock.gsub!(/<!¡¡(\d+?)¡/,
+ if @parablock =~/¡¡/u
+ @parablock.gsub!(/<!¡¡(\d+?)¡/u,
%{<tr>
<td width="\\1%" valign="top">
#{@vz.paragraph_table_xml}<b>})
- @parablock.gsub!(/¡¡(\d+?)¡/,
+ @parablock.gsub!(/¡¡(\d+?)¡/u,
%{</b></td><td width="\\1%" valign="top">
#{@vz.paragraph_table_xml}<b>})
@parablock.gsub!(/!>/,"</b>\n</td>\n</tr>")
@@ -114,11 +114,11 @@ module SiSU_Tables
end
@parablock
else
- @parablock.gsub!(/<!¡¡(\d+?)¡/,
+ @parablock.gsub!(/<!¡¡(\d+?)¡/u,
%{<tr>
<td width="\\1%" valign="top">
#{@vz.paragraph_table_xml}})
- @parablock.gsub!(/¡¡(\d+?)¡/,
+ @parablock.gsub!(/¡¡(\d+?)¡/u,
%{
</td>
<td width="\\1%" valign="top">
@@ -170,8 +170,8 @@ module SiSU_Tables
m=@parablock[/<!f(.+?)!>/,1]
@@tablefoot << m if m
@parablock.gsub!(/<!f.+?!>/,'')
- @@tablehead=1 if @parablock =~/<!Th¡/
- if @parablock =~/<!Th?¡.+?!~(\d+);\w\d+;\w\d+>/; @parablock=table_head($1)
+ @@tablehead=1 if @parablock =~/<!Th¡/u
+ if @parablock =~/<!Th?¡.+?!~(\d+);\w\d+;\w\d+>/u; @parablock=table_head($1)
end
if @parablock =~/<!TZ!>/
tablefoot=[]
@@ -181,12 +181,12 @@ module SiSU_Tables
end
end
if @@tablehead == 1
- if @parablock =~/¡¡/
- if @parablock =~/<!¡¡(\d+?)¡/
- @parablock.gsub!(/<!¡¡(\d+?)¡/,table_row($1,true))
+ if @parablock =~/¡¡/u
+ if @parablock =~/<!¡¡(\d+?)¡/u
+ @parablock.gsub!(/<!¡¡(\d+?)¡/u,table_row($1,true))
end
- if @parablock =~/¡¡(\d+?)¡/
- @parablock.gsub!(/¡¡(\d+?)¡/,table_cell($1,true))
+ if @parablock =~/¡¡(\d+?)¡/u
+ @parablock.gsub!(/¡¡(\d+?)¡/u,table_cell($1,true))
end
if @parablock =~/!>/
@parablock.gsub!(/!>/,table_row_close(true))
@@ -195,11 +195,11 @@ module SiSU_Tables
end
@parablock
else
- if @parablock =~/<!¡¡(\d+?)¡/
- @parablock.gsub!(/<!¡¡(\d+?)¡/,table_row($1))
+ if @parablock =~/<!¡¡(\d+?)¡/u
+ @parablock.gsub!(/<!¡¡(\d+?)¡/u,table_row($1))
end
- if @parablock =~/¡¡(\d+?)¡/
- @parablock.gsub!(/¡¡(\d+?)¡/,table_cell($1))
+ if @parablock =~/¡¡(\d+?)¡/u
+ @parablock.gsub!(/¡¡(\d+?)¡/u,table_cell($1))
end
if @parablock =~/!>/
@parablock.gsub!(/!>/,table_row_close)