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

Blank spaces removed before and after formatting tags like <b> #8

Open
dasilro opened this issue Mar 21, 2023 · 1 comment
Open

Blank spaces removed before and after formatting tags like <b> #8

dasilro opened this issue Mar 21, 2023 · 1 comment

Comments

@dasilro
Copy link
Contributor

dasilro commented Mar 21, 2023

Hi I've found a problem happend in a situation like this:

sit, amet consectetur adipisicing elit.

The result is that the system removes the whitespace before the b tag.

To be sure I've tested it with the example project like this:

image

With the result:

image

As you can see in the image the whitespace before the bold has disappeared.

Looking for the reason we found in the ParagraphComponent.cs class two trims that apparently generates the issue:

image

I really don't know the code, but it seems the system generates a quest pdf component for each tag and the "b" tag is included in this Paragraph component.

Maybe those trims shouldn't be applied in line formatting elements like b, i etc.

@AnderssonPeter
Copy link

Hi have the same issue, but it only seems to happen on the first b tag?
This is a <b>sentence</b> with a <b>few</b> words <b>where</b> spaces are missing. is rendered as
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

No branches or pull requests

2 participants