You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The value of 'original' has it's leading space stripped, it should be ' JANUS 34_Scan Zapman_chocr.html.gz', but it is turned into 'JANUS 34_Scan Zapman_chocr.html.gz'
This is probably caused by the commit from this issue: #15
Given the above commit, it is not clear to me if there is any way to keep spaces inside an element in XML. Is there a way to disable this behaviour?
Here's the relevant part from the file linked above:
Ah, I think I figured out the solution, there is a strip_whitespace=False argument that can be passed to the kwargs of parse -- it just wasn't documented.
I ran into a problem parsing this file with xmltodict: https://archive.org/download/janus-34-scan-zapman/janus-34-scan-zapman_files.xml
The value of 'original' has it's leading space stripped, it should be
' JANUS 34_Scan Zapman_chocr.html.gz'
, but it is turned into'JANUS 34_Scan Zapman_chocr.html.gz'
This is probably caused by the commit from this issue: #15
Given the above commit, it is not clear to me if there is any way to keep spaces inside an element in XML. Is there a way to disable this behaviour?
Here's the relevant part from the file linked above:
The text was updated successfully, but these errors were encountered: