Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.

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

Open
Manonnnn4 opened this issue Jan 2, 2019 · 4 comments

Comments

@Manonnnn4
Copy link

Manonnnn4 commented Jan 2, 2019

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
Copy link
Author

Manonnnn4 commented Jan 2, 2019

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 Manonnnn4 changed the title Captions of tables partly disappear Text (including captions) dissapears if it contains a certain type of dash character after parsing by serpico. Jan 2, 2019
@Manonnnn4
Copy link
Author

This might be connected to issue #398

@BuffaloWill
Copy link
Contributor

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

@Manonnnn4
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants