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

Choose/When Style Bug Fix #525

Merged
merged 2 commits into from
Feb 4, 2019

Conversation

MaxNad
Copy link
Collaborator

@MaxNad MaxNad commented Oct 19, 2018

In a Word template, if you have a choose when structure that doesn't default to the "Normal" style, it will be override when the report is generated.

For instance, if I have those styles that are defined in my Word document
image

and this piece of code

¬poc/paragraph¬ µCONDITIONALµ π.π
ƒitalicsƒπ.π
ƒh4ƒπ.π
÷ π.π ≠

where the ƒitalicsƒ section has the normal style + italic attribute, the ƒh4ƒ section has the normal style + bold attribute and I want the rest of the text to be printed in the "Code" style.

Currently, Serpico will override the ÷ π.π ≠ and set it to "Normal" in my generated report.

To avoid this, I added a piece of code that goes back into the XML structure and copies the w:rPr attribute (styling) into the new node created for the default text.

@MaxNad MaxNad merged commit 959b223 into SerpicoProject:master Feb 4, 2019
@Manonnnn4 Manonnnn4 mentioned this pull request Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant