aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/manpage.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2012-10-01 15:33:55 -0400
committerRalph Amissah <ralph@amissah.com>2012-10-01 15:33:55 -0400
commit7d4665f60be31a0481416cfc152bac4442cc6e74 (patch)
tree295a7c81ace0792ab5a32427cdbb9c6b8e1a6184 /lib/sisu/v3/manpage.rb
parentv3: vim, ftplugin/sisu.vim (diff)
v3: cosmetic code, true ? x : y
Diffstat (limited to 'lib/sisu/v3/manpage.rb')
-rw-r--r--lib/sisu/v3/manpage.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v3/manpage.rb b/lib/sisu/v3/manpage.rb
index d292900c..31a64a57 100644
--- a/lib/sisu/v3/manpage.rb
+++ b/lib/sisu/v3/manpage.rb
@@ -136,9 +136,9 @@ module SiSU_Manpage
end
notes=@n.flatten
notes.each do |e|
- util=if e.to_s =~/^\[[\d*+]+\]:/; SiSU_TextUtils::Wrap.new(e.to_s,78,4,1)
- else SiSU_TextUtils::Wrap.new(e.to_s,78,0,1)
- end
+ util=(e.to_s =~/^\[[\d*+]+\]:/) \
+ ? (SiSU_TextUtils::Wrap.new(e.to_s,78,4,1))
+ : (SiSU_TextUtils::Wrap.new(e.to_s,78,0,1))
wrap=util.line_wrap
wrap=if wrap =~ /^\s*[\d*+]+\s+.+?\s*\Z/m
wrap.gsub(/(^|&nbsp;|#{Mx[:nbsp]}|\s|\*)\\\*/,'\1\\\\\*'). #man page requires