From cabcc054ad2809a633cb4c1fb7ce966fce17e880 Mon Sep 17 00:00:00 2001
From: Assaf Gordon <assafgordon@gmail.com>
Date: Sat, 1 Aug 2015 23:30:07 -0600
Subject: [PATCH] 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(-)

diff --git a/build-aux/pmccabe2html b/build-aux/pmccabe2html
index 81dd932..1308759 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
             }
-- 
2.4.3

