-
Notifications
You must be signed in to change notification settings - Fork 474
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
Bugfix: Look for the paragraph number properties in the style as well #251
base: master
Are you sure you want to change the base?
Bugfix: Look for the paragraph number properties in the style as well #251
Conversation
Hi, |
Sure, here is a sample that demonstrate the cases that my patch fixes: Note that the sample contains a first paragraph that is not part of a list (numId=0), however, currently Paragraph.IsListItem returns True for this paragraph, this is one of the bugs that my patch fixes. |
Ok, Thank you, we will have a look at this. |
Hi, The doc says : "A value of 0 for the val attribute shall never be used to point to a numbering definition instance, and shall instead only be used to designate the removal of numbering properties at a particular level in the style hierarchy (typically via direct formatting)." So a numId with val of 0 is a ListItem, without the number. I understand that it looks like its not a ListItem, but it needs to be considered it as a ListItem. Thank you. |
Hi,
You are misinterpreting the definition, when a numId has a value of 0 it's as-if there are no numbering properties, and we DO NOT increment any number, we do not even have a number to increment because there is no list associated with the paragraph. I have attached an example so you could better understand the correct interpretation: As you can see in the example, the first paragraph with the Heading1 style has a numId set to 0, |
Hi, You are right, this will be fixed in v1.6. |
This commit also adds support for style inheritance (the 'basedOn' property)