diff options
author | Ralph Amissah <ralph@amissah.com> | 2011-03-10 08:59:09 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2011-03-10 08:59:14 -0500 |
commit | 93308a6a6decab0ca708bdd893d2c5eecdf5fb2f (patch) | |
tree | 9c03fd5b4115eb47b8d6179ca9850cbef4b4c6f6 /lib/sisu/v3/param.rb | |
parent | v2, v3: dal_doc_str: fix, looks like typo in regex (diff) |
v3 (v2): manpage, param, urls: manpage output presentation fixes
* manpage: lowercase .br; correct newlines before .nf and after .fi; no
escape of hyphens; remove redundant links; endnotes array requires flatten;
screen info on output path)
* param: manpage header .br and no escape of hyphens
* urls: correct output path for manpage
Diffstat (limited to 'lib/sisu/v3/param.rb')
-rw-r--r-- | lib/sisu/v3/param.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/sisu/v3/param.rb b/lib/sisu/v3/param.rb index 9dfbc70f..8ae87010 100644 --- a/lib/sisu/v3/param.rb +++ b/lib/sisu/v3/param.rb @@ -743,16 +743,14 @@ module SiSU_Param end end if manpage['name'] - manpage['name']=manpage['name'].join("\n.BR\n") - manpage['name'].gsub!(/(-)/m,"\\\\\\1") - manpage['name'].gsub!(/\A/,"\n.SH NAME\n") + manpage['name']=manpage['name'].join("\n.br\n") + manpage['name'].gsub!(/\A/,"\n.br\n.SH NAME\n.br\n") else manpage['name']='man page "name/whatis" information not provided, set in header @man: name=[whatis information]' end if manpage['synopsis'] - manpage['synopsis']=manpage['synopsis'].join("\n\n.BR\n") - manpage['synopsis'].gsub!(/(-)/m,"\\\\\\1") - manpage['synopsis'].gsub!(/\A/,"\n.SH SYNOPSIS\n") + manpage['synopsis']=manpage['synopsis'].join("\n\n.br\n") + manpage['synopsis'].gsub!(/\A/,"\n.br\n.SH SYNOPSIS\n.br\n") else manpage['synopsis']='' end |