Skip to content

Commit

Permalink
Merge pull request #22 from bgstack15/patch-1
Browse files Browse the repository at this point in the history
fix -B
  • Loading branch information
mvertes authored Jun 3, 2020
2 parents 5c9ef7b + 95636fe commit cad74a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions txt2man
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ do
(v) volume=$OPTARG;;
(P) sys=$OPTARG;;
(p) doprobe=1;;
(I) itxt="$OPTARG§$itxt";;
(B) btxt=$OPTARG;;
(I) itxt="$OPTARG§$itxt";;
(B) btxt="$OPTARG§$btxt";;
(T) post="groff -mandoc -Tlatin1 | ${PAGER:-more}";;
(X) post="groff -mandoc -X";;
(*) usage; exit;;
Expand Down Expand Up @@ -191,7 +191,7 @@ BEGIN {
avar[1] = btxt; avar[2] = itxt
for (k in avar) {
mark = (k == 1) ? "\\fB" : "\\fI"
split(avar[k], tt, "§")
split(avar[k], tt, "§")
for (i in tt)
if (tt[i] != "")
subwords["\\<" tt[i] "\\>"] = mark tt[i] "\\fP"
Expand Down

0 comments on commit cad74a9

Please sign in to comment.