diff options
author | Case Duckworth | 2022-08-22 11:51:21 -0500 |
---|---|---|
committer | Case Duckworth | 2022-08-22 11:51:21 -0500 |
commit | 68b0a061579b403afe568bb70f5e211dbebf02fa (patch) | |
tree | b4b9bb182e9e1db9b7dc8f5d9b52400600b5e334 | |
parent | Escape shell constructions earlier (diff) | |
download | ht-68b0a061579b403afe568bb70f5e211dbebf02fa.tar.gz ht-68b0a061579b403afe568bb70f5e211dbebf02fa.zip |
Move ` escaping
-rwxr-xr-x | ht.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ht.awk b/ht.awk index 59fa393..8edd800 100755 --- a/ht.awk +++ b/ht.awk | |||
@@ -37,7 +37,6 @@ $0 ~ CONFIG["raw_delim"] { | |||
37 | gsub(/\$\$/, "$\a", $0) | 37 | gsub(/\$\$/, "$\a", $0) |
38 | gsub(/\$[^\a]/, "\\\\&", $0) | 38 | gsub(/\$[^\a]/, "\\\\&", $0) |
39 | gsub(/\$\a/, "$", $0) | 39 | gsub(/\$\a/, "$", $0) |
40 | gsub(/`/, "\\`", $0) | ||
41 | } | 40 | } |
42 | 41 | ||
43 | RAW { | 42 | RAW { |
@@ -138,6 +137,7 @@ $0 ~ ("^" COMMENT_DELIM) { | |||
138 | $0 = templ | 137 | $0 = templ |
139 | } | 138 | } |
140 | } | 139 | } |
140 | gsub(/`/, "\\`", $0) | ||
141 | # Push to buffer | 141 | # Push to buffer |
142 | bufpush($0, sep) | 142 | bufpush($0, sep) |
143 | } | 143 | } |