MohamedSaeed / xdocreport

Automatically exported from code.google.com/p/xdocreport
1 stars 0 forks source link

Lists do not start to renumber #438

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Go to http://xdocreport.opensagres.cloudbees.net/textStyling.jsp?reportId=docx 
and replace the sample WYSIWYG code with:
(1) an ordered list of 3 items (start at 1), a line break then
(2) an unordered list of 3 items, a line break then
(3) an ordered list of 3 items (start at 1)

in the generated Word document, the 2nd set of ordered list items will start at 
4 instead of 1.  this should be fixed so that each set of ordered lists 
renumbers from 1.

also, why for the unordered list are the unordered list not shown with regular 
bullets but with odd 3 star characters (like the mercedez symbol)?

Original issue reported on code.google.com by mark.sal...@highq.com on 1 Sep 2014 at 2:55

GoogleCodeExporter commented 9 years ago
> this should be fixed so that each set of ordered lists renumbers from 1.

Don't remember how to html->docx works inside XDocReport, but it seems that 
it's a bug.

> also, why for the unordered list are the unordered list not shown with 
regular bullets but with odd 3 star characters (like the mercedez symbol)?

It's because of the template docx which defines mercedez symbol as unordered 
list item.

Original comment by angelo.z...@gmail.com on 1 Sep 2014 at 7:03

GoogleCodeExporter commented 9 years ago
Thanks!  I know you maintain this as a volunteer. I don't know what the bug fix 
schedule is like.  Likely need to start a renumbering from 1 on every ordered 
list.

Thanks again.

Original comment by mark.sal...@highq.com on 1 Sep 2014 at 12:41

GoogleCodeExporter commented 9 years ago
I suspect that the reason why the lists do not start to renumber is because 
they reference the same <w:abstractNum w:abstractNumId="##">  element for all 
of the lists. I had a document with about 8 different lists, but there were 
only two <w:abstractNum w:abstractNumId="##">.  So I believe the numbering 
didn't restart, because all of them referenced just these 2.  When I manually 
create a word document with many lists, each has its own <w:abstractNum 
w:abstractNumId="##">.  

See this page.

Original comment by mark.sal...@highq.com on 5 Sep 2014 at 6:19