summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-08-12 14:20:48 -0500
committerCase Duckworth2022-08-12 14:20:48 -0500
commitb2d8d92941180213f0e7d8776e56bdaa338c2b87 (patch)
treec763cd992c445fbbbbe07538726362edce7a3925
parentUse relative links in index.html (diff)
downloadht-b2d8d92941180213f0e7d8776e56bdaa338c2b87.tar.gz
ht-b2d8d92941180213f0e7d8776e56bdaa338c2b87.zip
Allow \\ to escape the backslash at the end of the line
-rwxr-xr-xht.awk4
1 files changed, 2 insertions, 2 deletions
diff --git a/ht.awk b/ht.awk index c15ccc0..04506a9 100755 --- a/ht.awk +++ b/ht.awk
@@ -56,9 +56,9 @@ $0 ~ ("^" COMMENT_DELIM) {
56# Blocks of text 56# Blocks of text
57/./ { 57/./ {
58 # EOL escape 58 # EOL escape
59 if (match($0, /\\$/)) { 59 if (match($0, /[^\\]\\$/)) {
60 sep = -1 60 sep = -1
61 $0 = substr($0, 1, RSTART - 1) 61 $0 = substr($0, 1, RSTART)
62 } else { 62 } else {
63 sep = "\n" 63 sep = "\n"
64 } 64 }