hpost: break up tags with newlines to avoid sed line buffer limit

This commit is contained in:
cinap_lenrek 2014-11-16 01:59:29 +01:00
parent 242007de7c
commit 2e802acf34

View file

@ -107,7 +107,8 @@ for(i in $at $af){
n=(1 $n)
}
a$#n=''
hget $url | uhtml | sed '
hget $url | uhtml | tr '>' '
' | sed '
s!^(TAG|ATT)! \1!g; # escape our inline signaling
s!<[ ]*!\nTAG !g; # find starttags, mark with TAG name ...
s!>[^>"'']*$!!g; # remove garbage after the tag