]> git.plutz.net Git - cgilite/commitdiff
dot termination done right (fix bug from last commit)
authorPaul Hänsch <paul@plutz.net>
Tue, 10 Dec 2019 00:12:50 +0000 (01:12 +0100)
committerPaul Hänsch <paul@plutz.net>
Tue, 10 Dec 2019 00:12:50 +0000 (01:12 +0100)
html-sh.sed

index 16aeb9a44e907814b5865fb9887fbe9833f450d8..8d7b61c076b93d3de8b59683e67d9b161ffc8075 100755 (executable)
@@ -48,7 +48,6 @@ t tagopen;
 G; h; s;^[^\n]*\n+;;; x; s;\n.*$;;;
 
 :attribs
-s;(<[^/][^>]*)>[ \t]*\.[ \t];\1>;g; t attEnd;
 s;class="([^>]+)>[ \t]*\.([^< \t]+);class="\2 \1>;g; t attribs;
 s;(<[^/][^>]*)>[ \t]*\.([^< \t]+);\1 class="\2">;g;
 s;(<[^/][^>]*)>[ \t]*#([^< \t]+);\1 id="\2">;g;
@@ -59,7 +58,7 @@ s;(<input ([^>]+ )?type=(checkbox|"checkbox"|'checkbox')( [^>]+)?)>[ \t]*(checke
 s;(<option( [^>]+)?)>[ \t]*(checked|selected);\1 selected="selected">;g;
 s;(<select( [^>]+)?)>[ \t]*multiple;\1 multiple="multiple">;g;
 t attribs;
-:attEnd
+s;(<[^/][^>]*>)[ \t]*\.[ \t];\1;g;
 
 s;(<[^/][^>]*>)[ \t]*;\1;g;
 # s;(<[^/][^>]*)>[ \t]*</[^>]+>;\1/>;g;