break.awk: chop trailing white space on lines

This commit is contained in:
Stefan Frederik 2021-11-04 23:31:15 +01:00
parent 8281c67aed
commit 4908152d99
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ BEGIN{ quote=0 }
{
pos=0
sub(/[ \t]*$/, "") # chop trailing white space
if(NF==0) { print ""; next }
first = substr($0,1,1)