From c496809ef2cff76c4209ee20171016cfa62694a5 Mon Sep 17 00:00:00 2001 From: Assaf Gordon Date: Sat, 1 Aug 2015 23:30:07 -0600 Subject: 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 `&' --- build-aux/pmccabe2html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build-aux/pmccabe2html') 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(/&/, "\&", codeline) # Must come first. - gsub(//, "\>", codeline) + gsub(/&/, "\\&", codeline) # Must come first. + gsub(//, "\\>", codeline) print codeline } -- cgit v1.2.1