Move all awk functions to separate files

This commit is contained in:
2026-03-07 19:42:37 +01:00
parent 3258616282
commit f580ed9cab
17 changed files with 838 additions and 777 deletions

14
awk/blockquote.awk Normal file
View File

@@ -0,0 +1,14 @@
BEGIN { in_bq = 0 }
/^>[[:space:]]?/ {
if (!in_bq) { print "<blockquote>"; in_bq = 1 }
sub(/^>[[:space:]]?/, "", $0)
print $0
next
}
{
if (in_bq) { print "</blockquote>"; in_bq = 0 }
print
}
END {
if (in_bq) print "</blockquote>"
}