--- docbook2man-spec.pl.previous Sat Nov 17 20:15:41 2001 +++ docbook2man-spec.pl Sat Nov 17 21:24:50 2001 @@ -543,7 +543,6 @@ sgml('', sub { - # my $choice = $_[0]->attribute('CHOICE')->value; my $parent = $_[0]->parent; $nonewline_hack++; @@ -593,23 +592,27 @@ sgml('', sub { + my $choice = $_[0]->attribute('CHOICE')->value; + $nonewline_hack++; $_[0]->ext->{'first_member'} = 1; man_output ' '; normalfont_on(); - if ($_[0]->attribute('CHOICE')->value =~ /opt/i) { + if ($choice =~ /opt/i) { man_output '['; - } else { + } elsif ($choice =~ /req/i) { man_output '{'; } font_off(); }); sgml('', sub { + my $choice = $_[0]->attribute('CHOICE')->value; + normalfont_on(); - if ($_[0]->attribute('CHOICE')->value =~ /opt/i) { + if ($choice =~ /opt/i) { man_output ' ]'; - } else { + } elsif ($choice =~ /req/i) { man_output ' }'; } font_off();