aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v6/txt_plain.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/txt_plain.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/txt_plain.rb')
-rw-r--r--lib/sisu/v6/txt_plain.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sisu/v6/txt_plain.rb b/lib/sisu/v6/txt_plain.rb
index 1aa08f0e..a56f5ac9 100644
--- a/lib/sisu/v6/txt_plain.rb
+++ b/lib/sisu/v6/txt_plain.rb
@@ -384,7 +384,10 @@ WOK
when 1 then wrapped.upcase << break_line << decorate.heading_underscore.l1*times + p_num << break_line*2
when 2 then wrapped.upcase << break_line << decorate.heading_underscore.l2*times + p_num << break_line*2
when 3 then wrapped.upcase << break_line << decorate.heading_underscore.l3*times + p_num << break_line*2
- when 4 then wrapped.upcase << break_line << decorate.heading_underscore.l4*times + p_num << break_line*2
+ when 4
+ unless dob.use_ == :dummy
+ wrapped.upcase << break_line << decorate.heading_underscore.l4*times + p_num << break_line*2
+ end
when 5 then wrapped.upcase << break_line << decorate.heading_underscore.l5*times + p_num << break_line*2
when 6 then wrapped.upcase << break_line << decorate.heading_underscore.l6*times + p_num << break_line*2
end