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.

lvlOverride logic adjustments

See original GitHub issue

Moi 😃

Currently concrete numbering related to overwriting starting value is applied to one level only. image

Sometimes users want to start next concrete numbering with other level, than first one, but if we keep “overrideLevel” logic as it, numbering would be continued. Here is how it looks like: (pref 1.2 meant to be pref 1.1 since its restarted)

image

In order to fix this behaviour we have to be able to generate similar xml to this: image

And this is the reference to the place where its hardcoded: https://github.com/dolanmiu/docx/blob/563e10fa92d206fdad897f243994386a5437e8a0/src/file/numbering/numbering.ts#L214

Potentially we can just propogate override for all levels with number 1, if instance has changed…But that would not be flexible e.g. you would be able to start with 10.1.1 after reset, but wouldn’t be possible with 10.1.10

The best way, I guess, is to give extensive control over which level has to be actually reseted e.g. [{lvl: 0, start: 1}, {lvl:1, start : 10}]

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
anti-the-socialcommented, Oct 27, 2022

Yep, it does sound to me as a quite a break changes. instance at IConcreteNumberingOptions seem to be not enough to be “as flexible as possible”

Nevertheless, we have an option where instance would just set all levels to 1 and optional overrideLevel.start would modify first level only. That might stay compatible with old versions…

0reactions
dolanmiucommented, Dec 15, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to read index numbers(bullet numbers) of a paragraph
I am trying hard to find a way to read the index numbers of the paragraph of the docx file. I have check...
Read more >
Basic Level Management / Gain Staging in Logic Pro X + Pre ...
FREE Gain Staging in Logic Pro X PDF Guide: https://bit.ly/GainStagePDFIn this video, Christopher Carvalho shows you how to set up optimimum ...
Read more >
Implement Tiered Menus - TPX - TechDocs
To define SYSVIEW, perform the step 1 through step 4 as menitioned in defining NETVIEW . The SYSPROG submenu is now completed. To...
Read more >
Viewing online file analysis results for 'designer.exe'
EXE) Inno Setup installer; 21.0% (. ... <w:num w:numId="%d"><w:abstractNumId w:val="%d"/><w:lvlOverride ... An internal logic error in SQLite.
Read more >
Muscular-WordProcessingML.pdf - Patrick Durusau
36H2.3.1.3 autoSpaceDN (Automatically Adjust Spacing of East Asian Text and Numbers) . ... 395H2.9.9 lvlOverride (Numbering Level Definition Override) .
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