]> git.plutz.net Git - lobster/commitdiff
Squashed 'cgilite/' changes from 84e1d69..fa0f919
authorPaul Hänsch <paul@plutz.net>
Tue, 10 Dec 2019 00:13:15 +0000 (01:13 +0100)
committerPaul Hänsch <paul@plutz.net>
Tue, 10 Dec 2019 00:13:15 +0000 (01:13 +0100)
fa0f919 dot termination done right (fix bug from last commit)

git-subtree-dir: cgilite
git-subtree-split: fa0f919ac698e41bc6376028a96aa1a361c82216

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;