Knio / dominate

Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API. It allows you to write HTML pages in pure Python very concisely, which eliminate the need to learn another template language, and to take advantage of the more powerful features of Python.
GNU Lesser General Public License v3.0
1.69k stars 109 forks source link

Undesired whitespace before *span* and *a*. #200

Open m-e-leypold opened 1 month ago

m-e-leypold commented 1 month ago

span and a also do not have the _isinline attribute set (similar issue as #139 and #194). This leads to unwanted white space (before the <a in the example) e.g. in

with span():
    text("(")
    with a(href=myurl):
        text("some")
    text(")")