SerpicoProject / Serpico

SimplE RePort wrIting and COllaboration tool
Other
1.09k stars 369 forks source link

Text (including captions) dissapears if it contains a certain type of dash character after parsing by serpico. #543

Open Manonnnn4 opened 5 years ago

Manonnnn4 commented 5 years ago

Bug

See below comment for the cause.

When adding tables to the template, some of the table captions (below the table) disapear (partly)

Details

  1. I added three tables to the template (not dynamically generated by serpico). Only the first contains the value §critical_tally§, §high_tally§, etc, the other two contains static text. All three tables have a caption (made with the Word caption functionality), of the form: "table x - name of table".
  2. When generating a report with this template, the tables only have the caption "table x", the rest of the caption disapears.
Manonnnn4 commented 5 years ago

After more testing, I know the cause. It has to do with the "dash" in the table name. When you have a dash in text in Word, Word somethimes automatically changes it from a short "-" to a slightly longer "–" (looking more as a minus sign). Serpico does not seem to parse this longer "–". I discovered this because this is not only an issue with table captions, but also happens in text (I had whole sentences disappear because of this bug). I have changed the title of the issue, since it is applicable for more than only table captions.

Manonnnn4 commented 5 years ago

This might be connected to issue #398

BuffaloWill commented 5 years ago

Thanks @Manonnnn4. Are you using the cloned repo or a release?

Manonnnn4 commented 5 years ago

@BuffaloWill I am running the official release, version 1.3.