diff options
author | Case Duckworth | 2022-08-12 14:20:48 -0500 |
---|---|---|
committer | Case Duckworth | 2022-08-12 14:20:48 -0500 |
commit | b2d8d92941180213f0e7d8776e56bdaa338c2b87 (patch) | |
tree | c763cd992c445fbbbbe07538726362edce7a3925 | |
parent | Use relative links in index.html (diff) | |
download | ht-b2d8d92941180213f0e7d8776e56bdaa338c2b87.tar.gz ht-b2d8d92941180213f0e7d8776e56bdaa338c2b87.zip |
Allow \\ to escape the backslash at the end of the line
-rwxr-xr-x | ht.awk | 4 |
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 | } |