diff options
author | Ralph Amissah <ralph@amissah.com> | 2014-01-06 23:02:50 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2014-01-06 23:03:02 -0500 |
commit | 5fb49b575a548313b827fd66fd7ecce514fe0e45 (patch) | |
tree | e7541789806c1bc086c05d06f0af2b9d54abb1c1 /lib/sisu/v5/txt_plain.rb | |
parent | v5: vim syntax, v5.2 match heading level D~ (diff) |
v5: heading recalibration, code (downstream) changessisu_4.2.17
* here no doubt remains breakage (test, fix & test again)
Diffstat (limited to 'lib/sisu/v5/txt_plain.rb')
-rw-r--r-- | lib/sisu/v5/txt_plain.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sisu/v5/txt_plain.rb b/lib/sisu/v5/txt_plain.rb index 81fe7e3a..ca944a1f 100644 --- a/lib/sisu/v5/txt_plain.rb +++ b/lib/sisu/v5/txt_plain.rb @@ -221,11 +221,14 @@ WOK end def decorate def heading_underscore + def l0 + '=' + end def l1 '*' end def l2 - '=' + '+' end def l3 '~' @@ -377,6 +380,7 @@ WOK times=wrapped.length times=@wrap_width if times > @wrap_width @plaintext[:body] << case lv + when 0 then wrapped.upcase << break_line << decorate.heading_underscore.l0*times + p_num << break_line*2 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 |