summaryrefslogtreecommitdiff
path: root/build-aux/pmccabe2html
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2015-08-01 23:30:07 -0600
committerPaul Eggert <eggert@cs.ucla.edu>2015-08-01 23:41:44 -0700
commitc496809ef2cff76c4209ee20171016cfa62694a5 (patch)
treedfa80d0f6df3ff46412f9e9e01ff67aea546fb54 /build-aux/pmccabe2html
parentcc47643cb9c3e755ce0e8b8f0060de6810d18166 (diff)
downloadgnulib-c496809ef2cff76c4209ee20171016cfa62694a5.tar.gz
pmccabe2html: fix gawk regex escaping
* build-aux/pmccabe2html: Add one more backslash to properly escape the gsub replacement value. Fixes this error: gawk: ./build-aux/pmccabe2html:425: \ warning: escape sequence `\&' treated as plain `&'
Diffstat (limited to 'build-aux/pmccabe2html')
-rw-r--r--build-aux/pmccabe2html6
1 files changed, 3 insertions, 3 deletions
diff --git a/build-aux/pmccabe2html b/build-aux/pmccabe2html
index 18984321f8..ef54eccba5 100644
--- a/build-aux/pmccabe2html
+++ b/build-aux/pmccabe2html
@@ -422,9 +422,9 @@ function html_fnc (nfun,
while ((getline codeline < (fname nfun "_fn.txt")) > 0)
{
- gsub(/&/, "\&amp;", codeline) # Must come first.
- gsub(/</, "\&lt;", codeline)
- gsub(/>/, "\&gt;", codeline)
+ gsub(/&/, "\\&amp;", codeline) # Must come first.
+ gsub(/</, "\\&lt;", codeline)
+ gsub(/>/, "\\&gt;", codeline)
print codeline
}