thombergs / docx-stamper

Easy-to-use template engine for creating docx documents in Java.
MIT License
214 stars 91 forks source link

Placeholder styling not preserved when paragraph contains several placeholders #67

Open sergeym1990 opened 5 years ago

sergeym1990 commented 5 years ago

When several placeholder are placed in the same paragraph, styles placed on individual placeholders are ignored. Example:

Template:

image

Result of processing:

image

Is there a way to preverve placeholder styling?

ImanGharib commented 5 years ago

Hi, this is related to #64. It seems that only the style in the first run will be considered.

sergeym1990 commented 5 years ago

Hi, this is related to #64. It seems that only the style in the first run will be considered.

Thanks for feedback. Do you know if it will be fixed in the future or if it is fundamental limitation?

ImanGharib commented 5 years ago

I can not tell that really, since I am using stamper newly. But as far as I saw the code, it is something to solve in the feature. Unfortunately @thombergs is busy at the time but he has told me that he would take look at PRs and other issues to help us out of them :).

caring-coder commented 1 year ago

should be solved in https://mvnrepository.com/artifact/pro.verron/docx-stamper/1.6.3