The "LineRuleType.EXACTLY" setting is NOT work correctly
See original GitHub issueMy 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:
- Created 10 months ago
- Comments:6 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 updateHello 😃
Not so long time ago noticed that these type of things are related to the difference between these standards:
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.1And here is note for OOXML meaning different formats Source: http://officeopenxml.com/
P.S. if we would use
exact
instead ofexactly
we might have problems with other editors, like libre office or open office. I have not tested that yet.