Skip to content

Commit

Permalink
Merge pull request #18 from jolmg/master
Browse files Browse the repository at this point in the history
remove redundant escapes causing gawk warnings
  • Loading branch information
mvertes authored Jun 3, 2020
2 parents 58fa251 + 4cd9ba2 commit 990329a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions txt2man
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ BEGIN {
pnzls = ls
match($0, /[^ ]/)
ls = RSTART
if (pls == 0 && pnzls > 0 && ls > pnzls && $1 !~ /^[0-9\-\*\o]\.*$/) {
if (pls == 0 && pnzls > 0 && ls > pnzls && $1 !~ /^[0-9\-\*o]\.*$/) {
# example display block
if (prevblankline == 1) {
print ".PP"
Expand Down Expand Up @@ -300,7 +300,7 @@ section == "SYNOPSIS" {
} else if ($1 == "#define")
subwords["\\<" $2 "\\>"] = "\\fI" $2 "\\fP"
for (i = 1; i <= NF; i++) {
if ($i ~ /[\,\)]\;*$/) {
if ($i ~ /[,\)];*$/) {
a = $i
sub(/.*\(/, "", a)
gsub(/\W/, "", a)
Expand Down

0 comments on commit 990329a

Please sign in to comment.