aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/manpage.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-03-05 21:51:24 -0500
committerRalph Amissah <ralph@amissah.com>2011-03-05 21:51:24 -0500
commit58cbe6bacc8416ad536787ed1acb6d0f4e889ea9 (patch)
treea5f37fb07df47c1d21412f28f7c535d84031269a /lib/sisu/v2/manpage.rb
parentdebian related sisu markup samples, reorganise (diff)
parentv2, v3: changelog updates (diff)
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v2/manpage.rb')
-rw-r--r--lib/sisu/v2/manpage.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/sisu/v2/manpage.rb b/lib/sisu/v2/manpage.rb
index 2d13793b..18670e2a 100644
--- a/lib/sisu/v2/manpage.rb
+++ b/lib/sisu/v2/manpage.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:
@@ -139,7 +139,6 @@ module SiSU_Manpage
if wrap =~ /^\s*[\d*+]+\s+.+?\s*\Z/m
wrap.gsub!(/(^|&nbsp;|#{Mx[:nbsp]}|\s|\*)\\\*/,'\1\\\\\*') #man page requires
wrap.gsub!(/\s\.(\S+)/,' \\.\1')
- wrap.gsub!(/(["''])/,"\\\\\\1") # quotation marks need escape
wrap.gsub!(/^\s*([\d*+]+)\s+(.+?)\s*\Z/m, <<GSUB
.TP
.BI \\1.
@@ -301,9 +300,9 @@ WOK
dob.obj.gsub!(/(?:#{Mx[:br_line]}|#{Mx[:br_nl]})+\s*/,"\n") # watch
end
dob.obj.gsub!(/(^|&nbsp;|#{Mx[:nbsp]}|\s|\*)\\\*/,'\1\\\\\*') #man page requires
+ dob.obj.gsub!(/┆/,'|')
dob.obj.gsub!(/\s\.(\S+)/,' \\.\1')
dob.obj.gsub!(/(\n\.)(\S\S\S+)/m,'\1\\.\2')
- dob.obj.gsub!(/-/,'\-') #manpages use this
dob.obj.gsub!(/&#126;/,'~') if dob.obj #manpages use this
if dob.is =~/group|verse|alt|code/
if dob.is =='code'