From b2d8d92941180213f0e7d8776e56bdaa338c2b87 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 12 Aug 2022 14:20:48 -0500 Subject: Allow \\ to escape the backslash at the end of the line --- ht.awk | 4 ++-- 1 file 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) { # Blocks of text /./ { # EOL escape - if (match($0, /\\$/)) { + if (match($0, /[^\\]\\$/)) { sep = -1 - $0 = substr($0, 1, RSTART - 1) + $0 = substr($0, 1, RSTART) } else { sep = "\n" } -- cgit 1.4.1-21-gabe81