Because Medtator saves files in the XML format, which automatically converts CRLF (\r\n) into LF (\n), tags created when importing from a .txt file with CRLF will be offset into incorrect positions after saving the annotations and reloading the XML file.
Example:
test.txt
hello\r\nworld!\r\nfoobar
ann.text: 'hello\r\nworld!\r\nfoobar'
The resulting XML save file:
<?xml version="1.0" encoding="UTF-8" ?>
<TEST>
<TEXT><![CDATA[hello
world!
foobar]]></TEXT>
<TAGS>
<Other spans="7~13" text="world!" id="O0" certainty="confirmed" frequency="" severity="" status="present" experiencer="patient" exclusion="no" comment=""/>
</TAGS>
<META/>
</TEST>
Now reloading the save from the XML file:
ann.text: 'hello\nworld!\nfoobar'
Tag is in the incorrect position.
Because Medtator saves files in the XML format, which automatically converts CRLF (
\r\n) into LF (\n), tags created when importing from a.txtfile with CRLF will be offset into incorrect positions after saving the annotations and reloading the XML file.Example:
test.txt
ann.text:'hello\r\nworld!\r\nfoobar'The resulting XML save file:
Now reloading the save from the XML file:
ann.text:'hello\nworld!\nfoobar'Tag is in the incorrect position.