Ask Your Question
0

text added to Draw odg file not being saved

asked 2018-10-02 04:41:24 +0200

tam gravatar image

updated 2018-10-07 08:59:03 +0200

ebot gravatar image

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. C:\fakepath\Ford Clover v2.odg

edit retag flag offensive close merge delete

Comments

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

Grantler gravatar imageGrantler ( 2018-10-02 06:56:11 +0200 )edit

Which LibreOffice version do you use?

ebot gravatar imageebot ( 2018-10-02 10:17:14 +0200 )edit

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

tam gravatar imagetam ( 2018-10-07 08:46:36 +0200 )edit

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.

tam gravatar imagetam ( 2018-10-07 08:51:04 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-10-07 08:59:04 +0200

tam gravatar image

updated 2018-10-07 09:10:24 +0200

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 &amp; Traits Textbox" <="" p="">

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 <text> tags...at least not consistently. It's probably easier to see in the attachment. C:\fakepath\section of content.xml.odt

edit flag offensive delete link more

Comments

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/

ebot gravatar imageebot ( 2018-10-07 09:08:06 +0200 )edit

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

tam gravatar imagetam ( 2018-10-08 03:26:28 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-10-02 04:41:24 +0200

Seen: 32 times

Last updated: Oct 07 '18