aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v4/odf.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-02-22 19:23:04 -0500
committerRalph Amissah <ralph@amissah.com>2013-02-22 19:23:16 -0500
commit9916bc2ddd1480a3ba35b3a74b766d9acbd34873 (patch)
tree75d53c4d9e951a26d4057c7a1167c96882d29a94 /lib/sisu/v4/odf.rb
parentv4: version & changelog (diff)
v4: dal, markup: line across page divider -..- introduced
* an alternative to page breaks -\\- & =\\=, significantly affects pdf & odf * output formats modified to include (pdf, odf, epub, html, plaintext)
Diffstat (limited to 'lib/sisu/v4/odf.rb')
-rw-r--r--lib/sisu/v4/odf.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/sisu/v4/odf.rb b/lib/sisu/v4/odf.rb
index ca02d16a..c3746b06 100644
--- a/lib/sisu/v4/odf.rb
+++ b/lib/sisu/v4/odf.rb
@@ -191,9 +191,11 @@ module SiSU_ODF
@@fns=@md.fns
end
unless @@docstart
- breakpage=if (@md.pagenew or @md.pagebreak) \
- and (@md.pagenew =~ m or @md.pagebreak =~m)
+ breakpage=if (@md.pagenew || @md.pagebreak) \
+ and (@md.pagenew =~m or @md.pagebreak =~m)
'<text:p text:style-name="P_normal_page_new"> </text:p>'
+ elsif @md.pageline \
+ and @md.pageline =~m #fix
else ''
end
end
@@ -526,6 +528,8 @@ module SiSU_ODF
if dob.obj==Mx[:br_page] \
or dob.obj==Mx[:br_page_new]
dob=br.br_page
+ elsif dob.obj==Mx[:br_page_line]
+ dob=br.br_page_line
elsif dob.obj==Mx[:br_obj]
dob=br.obj_sep
end
@@ -725,6 +729,8 @@ WOK
breakpage=if @md.pagenew \
or @md.pagebreak
' fo:break-before="page"'
+ elsif @md.pageline ##fix
+ ''
else ''
end
x=<<WOK