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

front
cinap_lenrek 2014-11-16 01:59:29 +01:00
parent 242007de7c
commit 2e802acf34
1 changed files with 2 additions and 1 deletions

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