summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--build-aux/pmccabe2html6
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 5d1977d9dd..855592ce45 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-08-01 Assaf Gordon <assafgordon@gmail.com> (tiny change)
+
+ 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 `&'
+
2015-07-29 Paul Eggert <eggert@cs.ucla.edu>
time_rz: port to pedantic memcpy
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
}