HTMLtoOpenXML icon indicating copy to clipboard operation
HTMLtoOpenXML copied to clipboard

Multiple nested list issue

Open rkorebrits opened this issue 7 years ago • 1 comments

Hi @ffmad,

As you have seen I've been doing a bit of work on the library (https://github.com/rkorebrits/HTMLtoOpenXML) as I needed the logic. Not sure if you have any use for the library yourself anymore, but in case you are bored and do want to spend some time on it:

The code doesn't parse nested lists properly. I improved the logic by Geoff so that it resets the counts per list and later added logic for 2 levels of lists, but it currently still breaks on 3 levels, like:

  • asd
    • adas
      • adsasd

The logic needs to be altered a bit so that it recursively looks for nests and parses them, while keeping the proper indentation. I'll probably get to it sometime in the near future myself otherwise.

When creating a Word document, you also need manually edit the numbering.xml and I want to add a few sample files and explanation to the project next time I work on it.

rkorebrits avatar Jul 16 '18 19:07 rkorebrits

Hi! Great work!

I don't have the need of the library anymore as I don't work with PHP anymore. I'm not even sure I would be able to work again on it with my current level on this language ^^

ffmad avatar Jul 17 '18 07:07 ffmad