diff options
author | Ralph Amissah <ralph@amissah.com> | 2014-01-12 21:30:22 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2014-01-12 21:30:22 -0500 |
commit | 3ca7ba8c0fdfd9ad9681012f1816b8ec534e8083 (patch) | |
tree | f1efb49ba113fea43cd39b71698b66f43cdb0531 /lib/sisu/v5/manpage.rb | |
parent | debian/changelog (4.2.17-1) (diff) | |
parent | v5: asciidoc, file extension (for now .ad), inline footnotes, minor (diff) |
Merge tag 'sisu_4.2.18' into debian/sid
SiSU 4.2.18
Diffstat (limited to 'lib/sisu/v5/manpage.rb')
-rw-r--r-- | lib/sisu/v5/manpage.rb | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/sisu/v5/manpage.rb b/lib/sisu/v5/manpage.rb index 0fe2b0b1..e675da3b 100644 --- a/lib/sisu/v5/manpage.rb +++ b/lib/sisu/v5/manpage.rb @@ -238,8 +238,8 @@ WOK times=wrapped.length times=78 if times > 78 @manpage[:body] << case lv - when 1 then '.SH ' << wrapped.upcase << break_line << break_line - when 2..3 then '.SH ' << wrapped.upcase << break_line << break_line + when 0 then '.SH ' << wrapped.upcase << break_line << break_line + when 1..3 then '.SH ' << wrapped.upcase << break_line << break_line when 4 then '.SH ' << wrapped.upcase << break_line << break_line when 5..6 then '.SH ' << wrapped.upcase << break_line << break_line end @@ -340,14 +340,6 @@ WOK x=SiSU_ManpageFormat::FormatTextObject.new(@md,dob) if dob.is==:heading manpage_structure(dob) - dob.obj=case dob.ln - when 1 then x.heading_body1 - when 2 then x.heading_body2 - when 3 then x.heading_body3 - when 4 then x.heading_body4 - when 5 then x.heading_body5 - when 6 then x.heading_body6 - end elsif dob.is==:para manpage_structure(dob) else |