Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text:continue-numbering seems to have very weird start numbers. #9595

Open
StephanMeijer opened this issue Mar 20, 2024 · 2 comments
Open

text:continue-numbering seems to have very weird start numbers. #9595

StephanMeijer opened this issue Mar 20, 2024 · 2 comments
Labels

Comments

@StephanMeijer
Copy link
Contributor

Explain the problem.

Document: input.odt

Display Screenshot 2024-03-20 at 23 17 23 Screenshot 2024-03-20 at 23 17 26

Output:

HTML
<p>An example list</p>
<ol start="0" type="1">
<li><blockquote>
<p>This is a list,</p>
</blockquote></li>
<li><blockquote>
<p>With numbers</p>
</blockquote>
<ol start="2" type="a">
<li><blockquote>
<p>A sublist from word, starts with</p>
</blockquote></li>
<li><blockquote>
<p>Alphabetic characters</p>
</blockquote>
<ol start="6" type="i">
<li><blockquote>
<p>A sub-sub-list will be</p>
</blockquote></li>
<li><blockquote>
<p>With lowercase roman</p>
</blockquote>
<ol start="14" type="1">
<li><blockquote>
<p>And here we are back with numbers</p>
</blockquote></li>
<li><blockquote>
<p>And another number</p>
</blockquote>
<ol start="15" type="a">
<li><blockquote>
<p>And back to lowercase alphabetical</p>
</blockquote></li>
</ol></li>
</ol></li>
</ol></li>
</ol></li>
<li><blockquote>
<p>BACK TO ORIGINAL LEVEL</p>
</blockquote></li>
</ol>
<p>Wow that was cool! AMAZING</p>
<ol start="3" type="A">
<li><blockquote>
<p>But we also have lists</p>
</blockquote></li>
<li><blockquote>
<p>With uppercase alphabet</p>
</blockquote>
<ol start="6" type="a">
<li><blockquote>
<p>And the sublist here again</p>
</blockquote></li>
<li><blockquote>
<p>Is lowercase alphabet</p>
</blockquote>
<ol start="11" type="i">
<li><blockquote>
<p>And lowercase roman</p>
</blockquote></li>
</ol></li>
</ol></li>
<li><blockquote>
<p>BACK TO ORIGINAL LEVEL</p>
</blockquote></li>
</ol>
<p>And foremost, we have lists starting with uppercase roman.</p>
<ol start="6" type="I">
<li><blockquote>
<p>Like this</p>
</blockquote></li>
<li><blockquote>
<p>This list has uppercase roman</p>
</blockquote></li>
<li><blockquote>
<p>And that is very OK</p>
</blockquote>
<ol start="9" type="a">
<li><blockquote>
<p>And again, the sublist starts with lowercase alphabet</p>
</blockquote>
<ol start="15" type="i">
<li><blockquote>
<p>And a sub-sub-list with lowercase roman</p>
</blockquote>
<ol start="23" type="1">
<li><blockquote>
<p>But the sub-sub-sub-list starts with numbers here</p>
</blockquote></li>
</ol></li>
</ol></li>
</ol></li>
<li><blockquote>
<p>BACK TO ORIGINAL LEVEL</p>
</blockquote></li>
</ol>
<p>And a list in lowercase roman</p>
<ol start="10" type="i">
<li><blockquote>
<p>This is an example of that</p>
</blockquote>
<ol start="11" type="a">
<li><blockquote>
<p>And this will be lowercase alphabetic</p>
</blockquote>
<ol start="19" type="i">
<li><blockquote>
<p>And lowercase roman??</p>
</blockquote>
<ol start="31" type="1">
<li><blockquote>
<p>And numeric</p>
</blockquote></li>
</ol></li>
</ol></li>
</ol></li>
<li><blockquote>
<p>BACK TO ORIGINAL LEVEL</p>
</blockquote></li>
</ol>
<p>And an odd list, using 1), 2), etc:</p>
<ol start="12" type="1">
<li><blockquote>
<p>Hello there</p>
</blockquote>
<ol start="14" type="a">
<li><blockquote>
<p>This is a sublist (lowercase alphabetic)</p>
</blockquote>
<ol start="26" type="i">
<li><blockquote>
<p>Sub-sub-list (lowercase roman)</p>
</blockquote>
<ol start="39" type="1">
<li><blockquote>
<p>Numeric, but without the ) but with the .</p>
</blockquote></li>
</ol></li>
<li><blockquote>
<p>Lower level</p>
</blockquote></li>
</ol></li>
<li><blockquote>
<p>Lower level</p>
</blockquote></li>
</ol></li>
<li><blockquote>
<p>BACK TO ORIGINAL LEVEL</p>
</blockquote></li>
</ol>
<p>Some list do the same but with alphabetic: a), b), etc.</p>
<ol start="14" type="a">
<li><blockquote>
<p>Hello there</p>
</blockquote>
<ol start="17" type="a">
<li><blockquote>
<p>Sub-list, normal alphabetic with dot</p>
</blockquote>
<ol start="31" type="i">
<li><blockquote>
<p>Sub-sub-list, lowercase roman again!</p>
</blockquote></li>
</ol></li>
</ol></li>
<li><blockquote>
<p>BACK TO THE ORIGINAL</p>
</blockquote></li>
</ol>
<p>We also can have list functioning with 1., 1.1., 1.1.1, etc.</p>
<ol start="16" type="1">
<li><blockquote>
<p>This is an example of that</p>
</blockquote>
<ol start="20" type="1">
<li><blockquote>
<p>This is the 1.1</p>
</blockquote></li>
<li><blockquote>
<p>And this is the 1.2.</p>
</blockquote>
<ol start="35" type="1">
<li><blockquote>
<p>And this is a 1.2.1.</p>
</blockquote>
<ol start="47" type="1">
<li><blockquote>
<p>And so forth, this will be a 1.2.1.1</p>
</blockquote></li>
</ol></li>
</ol></li>
</ol></li>
<li><blockquote>
<p>Back to the original leven (2.)</p>
</blockquote></li>
</ol>
<p>Some other interesting list as follows, these are headings, but not
really lists, but Microsoft Word pretends they are..</p>
<h1 id="it-seems-like-this-list-has-headings-1.">It seems like this list
has headings?? (1.)</h1>
<h2 id="i-wonder-how-this-is-converted-1.1">I wonder how this is
converted (1.1)</h2>
<p>And finally:</p>
<p>We can also have lists with text in between. </p>
<p>Things in life I like:</p>
<ol start="18" type="1">
<li><blockquote>
<p>Cookies</p>
</blockquote></li>
</ol>
<p>Cookies are just delicious</p>
<ol start="19" type="1">
<li><blockquote>
<p>Alcohol</p>
</blockquote></li>
</ol>
<p>It’s really nice.</p>
<ol start="20" type="1">
<li><blockquote>
<p>CENSORED</p>
</blockquote></li>
</ol>
<p>Yeah we all know what I mean by that.</p>

Probably caused by incompetency. I traced down for you who caused the bug. It was me.

Pandoc version?

pandoc 3.1.12.3
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: /Users/steve/.local/share/pandoc
Copyright (C) 2006-2023 John MacFarlane. Web: https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.
Darwin MacBook-Pro.local 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct  9 21:27:24 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000 arm64 arm Darwin
@jgm
Copy link
Owner

jgm commented Mar 20, 2024

Are you working on a fix?

@StephanMeijer
Copy link
Contributor Author

@jgm I can't atm, I am afraid. Has no focus in our team atm, maybe I can donate some of my free time but I am afraid I cannot promise :/.

I probably caused this bug by not resetting counters when (a) switching current's level in nesting or (b) switching on list styles (alphabetic, numeral, etc.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants