diff options
author | Case Duckworth | 2022-09-29 13:34:04 -0500 |
---|---|---|
committer | Case Duckworth | 2022-09-29 13:34:04 -0500 |
commit | 7525072618a6b0d4325c8599b2839dbac9215ab4 (patch) | |
tree | 57c0394404f7a3706837832df9030bc42ea470b6 | |
parent | Add more logging (diff) | |
download | vienna-7525072618a6b0d4325c8599b2839dbac9215ab4.tar.gz vienna-7525072618a6b0d4325c8599b2839dbac9215ab4.zip |
combine 2 commands into 1
-rwxr-xr-x | vienna | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vienna b/vienna index 7c8f722..522f69e 100755 --- a/vienna +++ b/vienna | |||
@@ -192,9 +192,7 @@ phtml() { # phtml < INPUT | |||
192 | # first line (an implementation detail). | 192 | # first line (an implementation detail). |
193 | sed -E \ | 193 | sed -E \ |
194 | '/./{H;1h;$!d;}; x; | 194 | '/./{H;1h;$!d;}; x; |
195 | s#^[ \n\t]\+##; | 195 | s#^[ \n\t]+[^<].*#&#; |
196 | t ok; :ok; | ||
197 | s#^[^<].*#&#; | ||
198 | t par; b; | 196 | t par; b; |
199 | :par; | 197 | :par; |
200 | s#([^\\])&#\1\&#g; s#\\&#\&#g; | 198 | s#([^\\])&#\1\&#g; s#\\&#\&#g; |