Move all awk functions to separate files
This commit is contained in:
14
awk/blockquote.awk
Normal file
14
awk/blockquote.awk
Normal 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>"
|
||||
}
|
||||
Reference in New Issue
Block a user