From b7e256eaea5b06b0deea57cd6bcda5a01ad29a00 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 10 Dec 2019 00:47:44 +0100 Subject: [PATCH] Squashed 'cgilite/' changes from f0bc458..84e1d69 84e1d69 introduce . as stop sign to prevent parsing text as attributes git-subtree-dir: cgilite git-subtree-split: 84e1d6938743a21a912420cc4ba5dc08a7c48155 --- html-sh.sed | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html-sh.sed b/html-sh.sed index 976d42e..16aeb9a 100755 --- a/html-sh.sed +++ b/html-sh.sed @@ -48,6 +48,7 @@ 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; @@ -58,6 +59,7 @@ s;(]+ )?type=(checkbox|"checkbox"|'checkbox')( [^>]+)?)>[ \t]*(checke s;(]+)?)>[ \t]*(checked|selected);\1 selected="selected">;g; s;(]+)?)>[ \t]*multiple;\1 multiple="multiple">;g; t attribs; +:attEnd s;(<[^/][^>]*>)[ \t]*;\1;g; # s;(<[^/][^>]*)>[ \t]*]+>;\1/>;g; -- 2.39.2