question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

lineRule preperty of ISpacingProperty not working on paragraph style

See original GitHub issue

Thanks for the amazing library!

I want to ask if the lineRule property of ISpacingProperty working right now? In this demo after replacing the lineRule with LineRuleType.EXACTLY did not change the rendering at all.

lineRule: LineRuleType.AUTO

Screenshot 2021-11-06 at 11 35 00 AM

lineRule: LineRuleType.EXACTLY

Screenshot 2021-11-06 at 11 35 55 AM

As seen in the two screenshot, the line spacing are all multiple although I have changed it to exactly.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
anti-the-socialcommented, Nov 8, 2021

And yeah, in your case I’d suggest just use LineRuleType.AT_LEAST and you’ll be fine 😃

0reactions
R-D-D-Dcommented, Nov 9, 2021

Ahhh got it thank you for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

style property is not working in nested paragraph element
You may want to put each paragraph in its own <p> tag, ... Try adding a css rule, instead of using inline styles...
Read more >
Spacing in default paragraph properties removed ... - MSDN
Hi,. I have a very large amount of Word documents which needs to change the document default styles, and I have written some...
Read more >
Paragraph formatting — python-docx 0.8.11 documentation
If not present in the style hierarchy, line spacing defaults to single spaced. The 'atLeast' value for @w:lineRule indicates the line spacing will...
Read more >
When Applying a Paragraph Style Has No Effect
First, you should make sure there's no “local formatting” sitting on top of the text. If you use the Type tool to click...
Read more >
spacing (Spacing Between Lines and Above/Below Paragraph)
This element specifies the inter-line and inter-paragraph spacing which shall be ... When the value of the @lineRule attribute is either exactly ,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found