-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Restart ListItem Numbering #10
Comments
I'm having the same problem with an ordered list. Any updates on this issue? |
Yes, kind of. I never got it fully ready for prime-time. That is why I never submitted a pull-request. But I have a branch in a personal fork called saic. In that branch I have worked-around this issue by completely allowing you to design your own numbered lists. Similar to the way you can create paragraph and font styles. The specific commit is this one: https://github.com/RLovelett/PHPWord/commit/1a6c6851f0d2444245f457c245d717ab18084672 If you make patches/changes to it I would love to see them. I want to make this feature complete and get it merged into master. 👍 |
Ability to add custom numbering style. Solved #10.
Hi @RLovelett, can you please check the latest version of the develop branch to verify that this feature is already in place and perhaps give us some suggestion for improvement? Thanks. |
@RLovelett Some news ? :) |
Yeah there is news. The code is way different now between when I made https://github.com/RLovelett/PHPWord/commit/1a6c6851f0d2444245f457c245d717ab18084672. What is more, code that I wrote, has been cut-n-paste into the PHPWord repository rather than cherry-picked or merged. Which is causing git to choke on my rebase/merge. Which is causing me to have resolve a lot of conflicts. Basically making me have to re-review all the code. I need to figure out if the code that I wrote has already been merged into master/develop. Also, there is entirely new chunks of code that I cannot figure out when it came into existence and why it came it to existence because of all the renaming/moving of files (e.g., when did indent start existing in Paragraph?). For instance I know that the proper use of indenting (i.e., Point is a lot has changed and I need to figure out what has been implemented and what has not. Then I can go about figuring out how to apply the old restart numbering fix to this new code. Bottom line though is I should be able submit a new patch against develop. |
Hi @RLovelett. Yes, heavy changes to the code base has been made since codeplex (0.6.*). I don't know when Since there's no pull request and the code base is quite different, I focused on implementing the functionality and the result is probably quite different with your approach. Please feel free to change my implementation. Thanks. |
Is there any updates to this issue? |
Custom numbering has been added since 0.10. See |
@ivanlanin go ahead and just write this down as a confirm from me. I am not going to have the time to recreate the project that caused me to make the pull request using the new PHPWord. Without that tool I have no way to confirm if it is "working" or not working. (PHPWord did not have a testing framework back when I originally was working this stuff). If I ever do end up using the project again and I find that it is not working; I will submit a new pull request then. |
Ok, @RLovelett. Thanks. |
Hey folks, |
@Kell that was how I eventually approached it. New style id for every list restart. Wasn't the end of the world, but the output was generated, and more meant for human editing... so it wasn't much of a problem. |
Is there a way to restart the ListItem numbering (lettering)?
Using this code snippet:
Currently it would output this:
I want to output this:
Is there some other code call that needs to be made? Or is this a limitation of PHPWord?
The text was updated successfully, but these errors were encountered: