Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix/document assembler paragraph properties not copied from template #91

Conversation

MalcolmJohnston
Copy link
Contributor

@MalcolmJohnston MalcolmJohnston commented Jan 2, 2025

This PR is to fix an issue reported a couple of times since the release of Clippit 2.4.0.

The problem is that the new inline HTML handling had the side effect of NOT copying over any existing paragraph properties that were applied in the template document.

The issue was simple enough to resolve, but I have broken up the tests for the HTML functionality AND made it so that it checks that the paragraph properties in the source template are copied over to the target (the tests work for single and multi line content).

In addition I also spotted that the definition for the strong tag for HTML was incorrect (?) previous definition was "Bold" and I have changed this to "strong".

fixes #90

MalcolmJohnston and others added 10 commits November 11, 2024 14:30
Updated DA Multiline content test because the HtmlConverter creates paragraphs rather than inserting soft line breaks.
…nts in a Content select (joins them with a new line).

Ran csharpier on all files.
Added HtmlAgilityPack to paket references.
Added tests for HTML content (not supported) and non-well formed XHTML.
Looking at possibility of replacing XMLReader approach with something closer to HtmlToWmlConverter.
…erties from source template.

Re-factored tests for HTML support to check for matching styles in source template and resulting document.
Change strong tag definition from "Bold" -> "strong"
@sergey-tihon sergey-tihon merged commit 1fa6d9a into sergey-tihon:master Jan 4, 2025
4 checks passed
@sergey-tihon
Copy link
Owner

Thank you for the fix, released in 2.4.1

@dhruvak26
Copy link

Hi @MalcolmJohnston ,

Issues is still not fixed in 2.4.1. Below is the sample i tested it. Below the document sample i tested:
image

In 2.3.0, the output of the generated template is like this :
image

But in 2.4.1, you can see the font size and font type remains same.
image

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

Successfully merging this pull request may close these issues.

Font Sizing, Font Styling and Font Coloring is not working in Clippit 2.4.0 version
3 participants