Greetings,

Here's a super-simple test file:

==Level 1==
Content
===Level 2A===
Content
===Level 2B===
Content

So 2A and 2B should both be children from 1.  However, when I run
odfwriter.py on it, the parse tree looks like this:

 Article->'test'
     Section tagname='@section' level=2
         Node
             u'Level 1'
         u' Content '
         Section tagname='@section' level=3
             Node
                 u'Level 2A'
             u' Content '
     Section tagname='@section' level=3
         Node
             u'Level 2B'
         Paragraph tagname='p'->'p'
             u' Content '

Level 2B is now a child of Article, not Level 1!  This means that the
ODF output gets the section headings wrong:

    <office:text>
      <text:section text:style-name="Sect1" text:name="test">
        <text:h text:outline-level="1" text:style-
name="HeadingArticle">test</text:h>
        <text:section text:style-name="Sect1" text:name="Level 1">
          <text:h text:outline-level="2" text:style-
name="Heading1">1:Level 1</text:h>
          <text:p text:style-name="TextBody"> Content </text:p>
          <text:section text:style-name="Sect1" text:name="Level 2A">
            <text:h text:outline-level="3" text:style-
name="Heading2">2:Level 2A</text:h>
            <text:p text:style-name="TextBody"> Content </text:p>
          </text:section>
        </text:section>
        <text:section text:style-name="Sect1" text:name="Level 2B">
          <text:h text:outline-level="2" text:style-
name="Heading1">1:Level 2B</text:h>  *** should be outline-level=3,
Heading2
          <text:p text:style-name="TextBody"> Content </text:p>
        </text:section>
      </text:section>
    </office:text>

What's going on, and how do I fix it?  I'm using the latest version
from the git repo.

Cheers,
-jani

-- 
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mwlib?hl=en.

Reply via email to