ruby-changes:40326
From: nobu <ko1@a...>
Date: Sat, 31 Oct 2015 14:55:40 +0900 (JST)
Subject: [ruby-changes:40326] nobu:r52407 (trunk): ruby.1: fix --enable/disable
nobu 2015-10-31 14:55:28 +0900 (Sat, 31 Oct 2015) New Revision: 52407 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52407 Log: ruby.1: fix --enable/disable * man/ruby.1: missing Fl before --{enable|disable}. * tool/mdoc2man.rb (parse_macro): supprot braces, Bro and Brc. Modified files: trunk/man/ruby.1 trunk/tool/mdoc2man.rb Index: man/ruby.1 =================================================================== --- man/ruby.1 (revision 52406) +++ man/ruby.1 (revision 52407) @@ -1,5 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/man/ruby.1#L1 .\"Ruby is copyrighted by Yukihiro Matsumoto <matz@n...>. -.Dd December 15, 2014 +.Dd October 31, 2015 .Dt RUBY(1) "" "Ruby Programmers Reference Guide" .\".Dt RUBY 1 .Os UNIX @@ -23,7 +23,7 @@ https://github.com/ruby/ruby/blob/trunk/man/ruby.1#L23 .Op Fl i Ns Op Ar extension .Op Fl r Ar library .Op Fl x Ns Op Ar directory -.Op - Ns Bro Cm enable Ns | Ns Cm disable Brc Ns - Ns Ar FEATURE +.Op Fl - Ns Bro Cm enable Ns | Ns Cm disable Brc Ns - Ns Ar FEATURE .Op Fl -dump Ns = Ns Ar target .Op Fl -verbose .Op Fl - Index: tool/mdoc2man.rb =================================================================== --- tool/mdoc2man.rb (revision 52406) +++ tool/mdoc2man.rb (revision 52407) @@ -235,6 +235,13 @@ class Mdoc2Man https://github.com/ruby/ruby/blob/trunk/tool/mdoc2man.rb#L235 when 'Ux' retval << "UNIX" next + when 'Bro' + retval << '{' + @nospace = 1 if @nospace == 0 + next + when 'Brc' + retval.sub!(/ *\z/, '}') + next end if @reference -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/