Can't set line-height in Word Doc Template

Greetings,

I've been struggling with this for hours, trying different combinations of line-height settings, but I can't get the dynamically generated content (markdown or HTML) to use my document's default styles. No matter what I try, the line height defaults to 1.0, and a custom style appears to be dynamically generated by Plumsail. I've tried options like MixStyle and Document Style for the HTML formatter without success. It feels like I'm missing something obvious. Has anyone faced this issue and found a solution? Any help would be greatly appreciated!

From Power Automate, I've even tried setting different combinations trying to force a line-height and class for a style:

{
  "valueOne": "<div class='customLineHeight'>@{outputs('Get_item')?['body/valueOne']}</div>",
  "valueTwo": "<div style='line-height: 24px'>@{outputs('Get_item')?['body/valueOne']}",
}

I've attached an image of what I see happening with my styles from a generated document.

Hello @pointmanbx,

Could you share the Word template and an example of the JSON data at support@plumsail.com with a reference to the thread? I'll try to reproduce it and if the issue is confirmed we'll review the case with our developers.

Best regards,
Petr
Plumsail team

Thanks for the support @Petr. For those that come across the issue, I had to use MixStyle and also set my line-height to em values, e.g, line-height: 1.5em

1 Like