diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-11-16 01:59:29 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-11-16 01:59:29 +0100 |
commit | 2e802acf34adf5d8ce90a89c266d331f6c22c880 (patch) | |
tree | ca4b2db5e3c261fbbfa088eb17e1ac18b5e54f04 /rc | |
parent | 242007de7cbd9ab17d5e33037b7edf0db578096a (diff) | |
download | plan9front-2e802acf34adf5d8ce90a89c266d331f6c22c880.tar.xz |
hpost: break up tags with newlines to avoid sed line buffer limit
Diffstat (limited to 'rc')
-rwxr-xr-x | rc/bin/hpost | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rc/bin/hpost b/rc/bin/hpost index 6ac5b839d..e64679a87 100755 --- a/rc/bin/hpost +++ b/rc/bin/hpost @@ -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 |