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:
parent
a27564377f
commit
9cd5c850a4
2 changed files with 9 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
.\"Ruby is copyrighted by Yukihiro Matsumoto <matz@netlab.jp>.
|
.\"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) "" "Ruby Programmers Reference Guide"
|
||||||
.\".Dt RUBY 1
|
.\".Dt RUBY 1
|
||||||
.Os UNIX
|
.Os UNIX
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
.Op Fl i Ns Op Ar extension
|
.Op Fl i Ns Op Ar extension
|
||||||
.Op Fl r Ar library
|
.Op Fl r Ar library
|
||||||
.Op Fl x Ns Op Ar directory
|
.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 -dump Ns = Ns Ar target
|
||||||
.Op Fl -verbose
|
.Op Fl -verbose
|
||||||
.Op Fl -
|
.Op Fl -
|
||||||
|
|
|
@ -235,6 +235,13 @@ class Mdoc2Man
|
||||||
when 'Ux'
|
when 'Ux'
|
||||||
retval << "UNIX"
|
retval << "UNIX"
|
||||||
next
|
next
|
||||||
|
when 'Bro'
|
||||||
|
retval << '{'
|
||||||
|
@nospace = 1 if @nospace == 0
|
||||||
|
next
|
||||||
|
when 'Brc'
|
||||||
|
retval.sub!(/ *\z/, '}')
|
||||||
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
if @reference
|
if @reference
|
||||||
|
|
Loading…
Reference in a new issue