Simple HTML Generation https://minihtml.trendels.name/

Make object, map, label, input, button, select, textarea inline elements

They are according to the HTML 4 spec.

<script> is also technically inline, but we omit it here because it is
usually used in in places where this doesn't matter, and readability
would suffer a lot if consecutive script elements were always joined on
the same line.

+16 -8
+1
pyproject.toml
··· 46 46 "tests/**/*.py", 47 47 "examples/**.py", 48 48 ] 49 + extend-exclude = ["src/minihtml/tags.py"] 49 50 50 51 [tool.ruff.lint] 51 52 extend-select = [
+8 -8
src/minihtml/tags.py
··· 299 299 #: The ``embed`` element. 300 300 embed: PrototypeEmpty = make_prototype("embed", empty=True, omit_end_tag=True) 301 301 #: The ``object`` element. 302 - object: PrototypeNonEmpty = make_prototype("object") 302 + object: PrototypeNonEmpty = make_prototype("object", inline=True) 303 303 #: The ``object`` element. Alias for :data:`object`. 304 304 object_ = object 305 305 #: The ``video`` element. ··· 309 309 #: The ``track`` element. 310 310 track: PrototypeEmpty = make_prototype("track", empty=True, omit_end_tag=True) 311 311 #: The ``map`` element. 312 - map: PrototypeNonEmpty = make_prototype("map") 312 + map: PrototypeNonEmpty = make_prototype("map", inline=True) 313 313 #: The ``map`` element. Alias for :data:`map`. 314 314 map_ = map 315 315 #: The ``area`` element. ··· 337 337 #: The ``form`` element. 338 338 form: PrototypeNonEmpty = make_prototype("form") 339 339 #: The ``label`` element. 340 - label: PrototypeNonEmpty = make_prototype("label") 340 + label: PrototypeNonEmpty = make_prototype("label", inline=True) 341 341 #: The ``input`` element. 342 - input: PrototypeEmpty = make_prototype("input", empty=True, omit_end_tag=True) 342 + input: PrototypeEmpty = make_prototype("input", inline=True, empty=True, omit_end_tag=True) 343 343 #: The ``input`` element. Alias for :data:`input`. 344 344 input_ = input 345 345 #: The ``button`` element. 346 - button: PrototypeNonEmpty = make_prototype("button") 346 + button: PrototypeNonEmpty = make_prototype("button", inline=True) 347 347 #: The ``select`` element. 348 - select: PrototypeNonEmpty = make_prototype("select") 348 + select: PrototypeNonEmpty = make_prototype("select", inline=True) 349 349 #: The ``datalist`` element. 350 350 datalist: PrototypeNonEmpty = make_prototype("datalist") 351 351 #: The ``optgroup`` element. ··· 353 353 #: The ``option`` element. 354 354 option: PrototypeNonEmpty = make_prototype("option") 355 355 #: The ``textarea`` element. 356 - textarea: PrototypeNonEmpty = make_prototype("textarea") 356 + textarea: PrototypeNonEmpty = make_prototype("textarea", inline=True) 357 357 #: The ``output`` element. 358 358 output: PrototypeNonEmpty = make_prototype("output") 359 359 #: The ``progress`` element. ··· 382 382 slot: PrototypeNonEmpty = make_prototype("slot") 383 383 #: The ``canvas`` element. 384 384 canvas: PrototypeNonEmpty = make_prototype("canvas") 385 - # [[[end]]] (checksum: 9d0f6f3a6fdd91db8b23518117d3e1e2) 385 + # [[[end]]] (checksum: 122bdfe2f4c7ca99f14dbdad1426dedb)
+7
tags/html5.yml
··· 156 156 omit_end_tag: true 157 157 object: 158 158 alias: object_ 159 + inline: true 159 160 video: 160 161 audio: 161 162 track: ··· 163 164 omit_end_tag: true 164 165 map: 165 166 alias: map_ 167 + inline: true 166 168 area: 167 169 empty: true 168 170 omit_end_tag: true ··· 188 190 # 189 191 form: 190 192 label: 193 + inline: true 191 194 input: 192 195 alias: input_ 196 + inline: true 193 197 empty: true 194 198 omit_end_tag: true 195 199 button: 200 + inline: true 196 201 select: 202 + inline: true 197 203 datalist: 198 204 optgroup: 199 205 option: 200 206 textarea: 207 + inline: true 201 208 output: 202 209 progress: 203 210 meter: