I added short_empty_elements=False to the write func of etree so that when I have an empty elements ,such as <\t>, it will write it in this format:
<root>
  <t></t>
</root>
My problem is that I need it to be in seperate lines, like this:
<root>
  <t>
  </t>
</root>
and I can't figure out how to do it.
.text='\n' or .text='' both don't work.
Is there any way to do it?