webodf / WebODF

WebODF - JavaScript Document Engine
http://webodf.org/
787 stars 165 forks source link

Handling of nested lists within lists - double/triple/etc bullet points #91

Open kossebau opened 10 years ago

kossebau commented 10 years ago

WebODF currently handles nested lists within lists (e.g. "powerpoints") wrongly. This is problematic in presentations. Every line with a new item gets a new number or bullet on every level it descends from as well, meaning double, triple etc bullets.

            <text:list text:style-name="L4">
              <text:list-item>
                <text:p text:id="id5" text:style-name="P5">
                  <text:span text:style-name="T1">Creation</text:span>
                </text:p>
              </text:list-item>
            </text:list>

Probably this can be dealt with at CSS level, using CSS selectors (turning bullet points off and then reenabling them through CSS selectors, as per http://www.w3.org/TR/CSS2/selector.html)

An example document that shows this behaviour is for instance:

http://isoc.nl/activ/opendocsocietylaunch/PatrickDurusau-LibriLiberi.odp

Note that this document exposes interesting (possibly nonconformant) behaviour in some applications because although for instance the title slide has doubly nested bullet points, it seems no bullet point is shown at all in some applications.

satsuper commented 10 years ago

I believe this issue was fixed by #565. I loaded the presentation in the viewer and the nested issue you talk about doesn't appear and the nested list appears to have the correct dashed bullet character where it appears.

Document still seems to differ quite a bit from LibreOffice 4.3.0.4 so unsure whether to close this.