handlineg of <select multiple>
authorPaul Hänsch <paul@plutz.net>
Mon, 16 Jul 2018 23:24:49 +0000 (01:24 +0200)
committerPaul Hänsch <paul@plutz.net>
Mon, 16 Jul 2018 23:24:49 +0000 (01:24 +0200)
html-sh.sed

index d7a7573..d1c70b8 100755 (executable)
@@ -48,6 +48,7 @@ t attribs;
 s;(<input ([^>]+ )?type=(radio|"radio"|'radio')( [^>]+)?)>[ \t]*checked;\1 checked="checked">;g;
 s;(<input ([^>]+ )?type=(checkbox|"checkbox"|'checkbox')( [^>]+)?)>[ \t]*checked;\1 checked="checked">;g;
 s;(<option( [^>]+)?)>[ \t]*(checked|selected);\1 selected="selected">;g;
+s;(<select( [^>]+)?)>[ \t]*multiple;\1 multiple="multiple">;g;
 t attribs;
 
 s;(<[^/][^>]*>)[ \t]*;\1;g;