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

<%If> block with image only #75

Open
drokler opened this issue Aug 5, 2024 · 1 comment
Open

<%If> block with image only #75

drokler opened this issue Aug 5, 2024 · 1 comment

Comments

@drokler
Copy link

drokler commented Aug 5, 2024

SharpDocx v 2.5.0

template:

<%if (true) {%>

SomeImageInTemplate

<%}%>

When i try render image wiht if block i cant get result.
Its doesnt work if use template without text just wiht image. After adding some character like whitespace its render ok. There are some hack to avoid putting symbols ?
b5973636-616d-4104-a3f2-6a019818e2ef.docx

@egonl
Copy link
Owner

egonl commented Sep 26, 2024

Empty paragraphs in code blocks are removed. A paragraph with only an image is -incorrectly- considered to be an empty paragraph. Adding a space does indeed solve the issue.

@egonl egonl closed this as completed Sep 26, 2024
@egonl egonl reopened this Sep 26, 2024
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