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/v2/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/v2/param.rb')
-rw-r--r-- | lib/sisu/v2/param.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/sisu/v2/param.rb b/lib/sisu/v2/param.rb index 207154b0..655177a7 100644 --- a/lib/sisu/v2/param.rb +++ b/lib/sisu/v2/param.rb @@ -7,7 +7,7 @@ * Author: Ralph Amissah - * Copyright: (C) 1997 - 2010, Ralph Amissah, All Rights Reserved. + * Copyright: (C) 1997 - 2011, Ralph Amissah, All Rights Reserved. * License: GPL 3 or later: @@ -732,16 +732,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 |