Fix for Issue 90 - Font Sizing, Font Styling and Font Coloring is not working in Clippit 2.4.0 version #94
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello @sergey-tihon,
I believe that the issue flagged by @dhruvak26 and @ankushchepure is now fixed.
Thanks to @dhruvak26 for the files to reproduce the issue.
The problem was dealing with run properties that were different from the paragraph styles. The HTML formatting was blowing these away.
What I have done to resolve this is merge the run properties. The merge strategy is as follows:
This means that styling in the HTML will override any styling in the template document, but if the HTML does not override then the source styles will be maintained.
I have added an additional test file (the one provided by @dhruvak26) to test case DA289. If you run the test then you should see that the output Word document maintains the styles.
@DhruvaK or @ankushchepure it would be good if one of you could verify that the results of the test are what you are expecting.
Cheers,
Malcolm