From: Paul Hänsch Date: Mon, 16 Jul 2018 23:22:51 +0000 (+0200) Subject: bigfix: handling of [foo].bar X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;ds=sidebyside;h=11d61c375b334aeb20deea101a91e970ecfd7c2a;p=clickslide bigfix: handling of [foo].bar --- diff --git a/html-sh.sed b/html-sh.sed index 1f988b3..d7a7573 100755 --- a/html-sh.sed +++ b/html-sh.sed @@ -40,14 +40,14 @@ t tagopen; G; h; s;^[^\n]*\n+;;; x; s;\n.*$;;; :attribs -s;class="([^>]+)>[ \t]+\.([^< \t]+);class="\2 \1>;g; t attribs; -s;>[ \t]+\.([^< \t]+); class="\1">;g; -s;>[ \t]+#([^< \t]+); id="\1">;g; -s;>[ \t]+([^ \t=<]+=("[^"]*"|'[^']*'|[^< \t]*)); \1>;g; +s;class="([^>]+)>[ \t]*\.([^< \t]+);class="\2 \1>;g; t attribs; +s;(<[^/][^>]*)>[ \t]*\.([^< \t]+);\1 class="\2">;g; +s;(<[^/][^>]*)>[ \t]*#([^< \t]+);\1 id="\2">;g; +s;(<[^/][^>]*)>[ \t]*([^ \t=<]+=("[^"]*"|'[^']*'|[^< \t]*));\1 \2>;g; t attribs; -s;(]+ )?type=(radio|"radio"|'radio')( [^>]+)?)>[ \t]+checked;\1 checked="checked">;g; -s;(]+ )?type=(checkbox|"checkbox"|'checkbox')( [^>]+)?)>[ \t]+checked;\1 checked="checked">;g; -s;(]+))>[ \t]+(checked|selected);\1 selected="selected">;g; +s;(]+ )?type=(radio|"radio"|'radio')( [^>]+)?)>[ \t]*checked;\1 checked="checked">;g; +s;(]+ )?type=(checkbox|"checkbox"|'checkbox')( [^>]+)?)>[ \t]*checked;\1 checked="checked">;g; +s;(]+)?)>[ \t]*(checked|selected);\1 selected="selected">;g; t attribs; s;(<[^/][^>]*>)[ \t]*;\1;g;