summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-08-26 14:35:54 -0500
committerCase Duckworth2022-08-26 14:35:54 -0500
commit6bd5fdb13f8ee65e6fb4d86a986d3d5425740b30 (patch)
tree6d811bc98d702e3897b0f3937830e003160748cb
parentFix variable persistence (diff)
downloadht-main.tar.gz
ht-main.zip
Fix backslash escaping HEAD main
-rwxr-xr-xht.awk3
1 files changed, 1 insertions, 2 deletions
diff --git a/ht.awk b/ht.awk index 45da70e..8bdc3c4 100755 --- a/ht.awk +++ b/ht.awk
@@ -64,7 +64,7 @@ $0 ~ ("^" COMMENT_DELIM) {
64 } else { 64 } else {
65 sep = "\n" 65 sep = "\n"
66 } 66 }
67 gsub(/\\/, "\\\\", $0) 67 # gsub(/\\/, "\\\\", $0)
68 $0 = html_escape($0) 68 $0 = html_escape($0)
69 # Loop through BLOCK_TYPES 69 # Loop through BLOCK_TYPES
70 for (bt in BLOCK_TYPES) { 70 for (bt in BLOCK_TYPES) {
@@ -140,7 +140,6 @@ $0 ~ ("^" COMMENT_DELIM) {
140 } 140 }
141 } 141 }
142 # Escape backslash and ` 142 # Escape backslash and `
143 gsub(/\\/, "\\\\", $0)
144 gsub(/`/, "\\`", $0) 143 gsub(/`/, "\\`", $0)
145 # Push to buffer 144 # Push to buffer
146 bufpush($0, sep) 145 bufpush($0, sep)