text added to Draw odg file not being saved

I created a character sheet for Dungeons & Dragons using Draw. I save it with no issues. I start filling in fields and save. I later open it, add more text, save it, close it, reopen it, and changes are not retained.

I also find when I first open ODG files in general, I have to click on the second page, then back to the first to be able to add text to any text field. Most annoying.

Attached file. Open and try to add text to “Features & Traits” text box, save, close and reopen. Poof, changes gone.
Ford Clover v2.odg

Seems to be corrupt. You used some forms, I could not mark them even if changed to edit mode. Poof.

Which LibreOffice version do you use?

The version info is:
Version: 6.0.6.2
Build ID: 1:6.0.6-0ubuntu0.18.04.1
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3;
Locale: en-US (en_US.UTF-8); Calc: group

As for being corrupt, that may be possible. I’ve had Draw crash on me regularly and it performs a recovery on the ODG file.

In order to edit a field after opening the file, you have to click on the second page on the left navigation, then click back to the first. Then you can edit the fields.

I renamed the ODG file to a ZIP file. Opened it and looked at the “content.xml” file. After Draw saves it, there are two places where the field content is stored. One is the full text. The other is how it’s displayed.

Under this tag:
<form:textarea form:name=“Features & Traits Textbox”

You’ll find this current-value setting:


form:current-value=“Halfling Lucky: Reroll attack, ability check, or saving throw when a 1 is rolled (must use new roll). Nimbleness: Can move through the space of any creature that is larger than me (small). Brave: Advantage on saving throws against being frightened. Stout: Advantage on saving throws against poison damage and have resistance against poison damage. Monk Unarmed Defense: if no armor or shield AC=10 + Dex mod + Wis mod Ki = 2 Flurry of Blows: 1 ki for 2 unarmed bonus attacks Patient Defense: 1 ki for bonus dodge Step of the Wind: 1 ki to disengage or dash as a bonus action, jump distance is doubled for the turn test”


Then a few lines later, there’s text tags that are missing that last bit of text “test” I added above while in Draw, so it’s not displayed:


<text:p text:style-name=“P1”>
<text:span text:style-name=“T1”>
Halfling</text:span>
</text:p>
<text:p text:style-name=“P1”>Lucky:
<text:s />Reroll attack, ability check, or saving
throw when a 1 is rolled (must use new
roll).</text:p>
<text:p text:style-name=“P1”>Nimbleness: Can move
through the space of any creature that is larger than
me (small).</text:p>
<text:p text:style-name=“P1”>
<text:span text:style-name=“T1”>Brave</text:span>:
Advantage on saving throws against being
frightened.</text:p>
<text:p text:style-name=“P1”>Stout: Advantage on
saving throws against poison damage and have
resistance against poison damage.</text:p>
<text:p text:style-name=“P1” />
<text:p text:style-name=“P1”>Monk</text:p>
<text:p text:style-name=“P1”>Unarmed Defense: if no
armor or shield</text:p>
<text:p text:style-name=“P1”>AC=10 + Dex mod + Wis
mod</text:p>
<text:p text:style-name=“P1” />
<text:p text:style-name=“P1”>Ki = 2</text:p>
<text:p text:style-name=“P1”>Flurry of Blows: 1 ki
for 2 unarmed bonus attacks</text:p>
<text:p text:style-name=“P1”>Patient Defense: 1 ki
for bonus dodge</text:p>
<text:p text:style-name=“P1”>Step of the Wind: 1 ki
to disengage or dash as a bonus action, jump distance
is doubled for the turn</text:p>
<text:p text:style-name=“P1” />


So the problem is that Draw doesn’t save all the text in the tags…at least not consistently. It’s probably easier to see in the attachment.
section of content.xml.odt

I think there will not be many users who use such a complicated draw file. So you should abandon a bug by stating the information: https://bugs.documentfoundation.org/

Two bugs submitted with Document Foundation: 120389 (for navigate before edit) and 120397 (not retaining added text in textbox).