aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v6/xml_odf_odt.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-05-12 23:13:42 -0400
committerRalph Amissah <ralph@amissah.com>2014-05-12 23:13:42 -0400
commitcd4b4e42386f781c14e5c8c945d11e7c08cf98c5 (patch)
treeabf133b83011471982b1f8085bb25a315ea3ca0d /lib/sisu/v6/xml_odf_odt.rb
parentv5 v6: bin/sisu, ensure return to start dir (diff)
v6: ao, heading with no ocn, distinguish ~# from -#
* ~# is general & means no ocn (for any object to which it is applied) * -# is relevant only for 1~ dummy headings & instructs that they should be removed from output where possible * applied so far to pdf, odt & plaintext
Diffstat (limited to 'lib/sisu/v6/xml_odf_odt.rb')
-rw-r--r--lib/sisu/v6/xml_odf_odt.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sisu/v6/xml_odf_odt.rb b/lib/sisu/v6/xml_odf_odt.rb
index 0457ad7d..0fe880c0 100644
--- a/lib/sisu/v6/xml_odf_odt.rb
+++ b/lib/sisu/v6/xml_odf_odt.rb
@@ -209,8 +209,11 @@ module SiSU_XML_ODF_ODT
end
end
@@docstart=false
- dob.tmp=dob.obj
- dob.obj=%{#{breakpage}<text:h text:style-name="H_#{dob.ln}" text:outline-level="#{dob.ln}">#{p_num[:set_ref]}#{set_bookmark_tag(dob)}#{dob.obj}#{p_num[:display]}</text:h>}
+ if dob.use_ != :dummy
+ dob.tmp=dob.obj
+ dob.obj=%{#{breakpage}<text:h text:style-name="H_#{dob.ln}" text:outline-level="#{dob.ln}">#{p_num[:set_ref]}#{set_bookmark_tag(dob)}#{dob.obj}#{p_num[:display]}</text:h>}
+ else dob.tmp,dob.obj='',''
+ end
dob
end
def toc(dob,p_num)