add blankspace to xml file using yattag Python

30 views Asked by At

I would like to add a blankspace as value between tags.

with tag('Value'):
    text(" ")

And I expected to have this:

<Value> </Value>

Though I get this:

<Value></Value>

I've tried a few attempts, such as using char codes or getting [1] of a "a a" string, but whenever it is just a blankspace, it adds no value in the xml file

0

There are 0 answers