From 5dabf589813e74adbebacddd78a3f2bb4eecfd9c Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sun, 14 Aug 2022 01:49:52 -0500 Subject: Better-format my weed --- sfeed_weed.awk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sfeed_weed.awk b/sfeed_weed.awk index ccc3521..2b5d102 100755 --- a/sfeed_weed.awk +++ b/sfeed_weed.awk @@ -32,7 +32,14 @@ BEGIN { datecmd | getline published close(datecmd) gsub(/\\t/, "\t", content) - gsub(/\\n/, "\n", content) + if (title ~ /\[acdw\]/) { + print "acdw" + sub(/^/, "

", content) + gsub(/\\n\\n/, "\\n

", content) + gsub(/\\n/, "\n", content) + } else { + gsub(/\\n/, "\n", content) + } gsub(/\\/, "\\", content) print "

" print "

" title "

" -- cgit 1.4.1-21-gabe81