1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

ruby.1: fix --enable/disable

* man/ruby.1: missing Fl before --{enable|disable}.

* tool/mdoc2man.rb (parse_macro): supprot braces, Bro and Brc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-10-31 05:55:28 +00:00
parent a27564377f
commit 9cd5c850a4
2 changed files with 9 additions and 2 deletions

View file

@ -1,5 +1,5 @@
.\"Ruby is copyrighted by Yukihiro Matsumoto <matz@netlab.jp>.
.Dd December 15, 2014
.Dd October 31, 2015
.Dt RUBY(1) "" "Ruby Programmers Reference Guide"
.\".Dt RUBY 1
.Os UNIX
@ -23,7 +23,7 @@
.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 -

View file

@ -235,6 +235,13 @@ class Mdoc2Man
when 'Ux'
retval << "UNIX"
next
when 'Bro'
retval << '{'
@nospace = 1 if @nospace == 0
next
when 'Brc'
retval.sub!(/ *\z/, '}')
next
end
if @reference