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.

The "LineRuleType.EXACTLY" setting is NOT work correctly

See original GitHub issue

My version of docx.js is 7.6.0, when I set config like this paragraph: { alignment: AlignmentType.CENTER, spacing: { line: 28.9 * 20, lineRule: LineRuleType.EXACTLY }, } The docx file I got in xml like this: <w:spacing w:line="578" w:lineRule="exactly"/> but the MS word displaying this file is not correct. When I modify the xml file “exactly” to “exact”, It display correct. The correct xml code like this <w:spacing w:line="578" w:lineRule="exact"/> I use MS word 2019, I’m not sure whether the problem is caused by MS Word. Thank you for your help.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
dolanmiucommented, Nov 19, 2022

I will add EXACT to the list too, so people can pick and choose. I do not want to deprecate anything until a major version update

2reactions
anti-the-socialcommented, Nov 17, 2022

Hello 😃

Not so long time ago noticed that these type of things are related to the difference between these standards:

  1. Open Office XML
  2. Office Open XML
  3. Open XML

Yet not sure if “Open XML” are same with “Open Office XML” but I definitely know for the past issues we handled we followed the “Office Open XML” which is slightly different from what Word uses. e.g. in this w:lineRule

e.g. Word’s own “Open XML” says exact https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.linespacingrulevalues?view=openxml-2.8.1

And here is note for OOXML meaning different formats image Source: http://officeopenxml.com/

P.S. if we would use exact instead of exactly we might have problems with other editors, like libre office or open office. I have not tested that yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

docx/paragraph.md at master · dolanmiu/docx - GitHub
Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser. - docx/paragraph.md at master ·...
Read more >
docx - Bountysource
The "LineRuleType.EXACTLY" setting is NOT work correctly $ 0. Created 1 month ago in dolanmiu/docx with 4 comments. My version of docx.js is...
Read more >
Test my_test_11 - DAYPO
1. You are working in BPC Embedded- Data audit is enabled for a local provider. What fields are added to the local provider...
Read more >
A Library for Generating Character Bitmaps from Adobe Type ...
Thus the question arises: Why not use X11 directly for rastering ... Run ./configure. This will check your system's setup and generate the...
Read more >
(PDF) Making a Success of Principles-Based Regulation
by formal and informal guidance) in setting and developing. standards. This approach is illustrated in TCF and the FSA's. decision not to ...
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