https://issues.apache.org/bugzilla/show_bug.cgi?id=51484

Benjamin Riefenstahl <riefenst...@mecom.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #8 from Benjamin Riefenstahl <riefenst...@mecom.de> 2012-04-26 
09:10:25 UTC ---
Thank you for looking into it.

The code does not yet work.  Currently it is testing that the current
element is in the siblings, but what you want to check is, if it has a
next after that, something like:

        List siblings = parent.getChildren();
        // write suffix /sect only if this section is not last section (see bug
#51484)
        Iterator iterator = siblings.listIterator ( siblings.indexOf ( this )
);
        iterator.next(); // Skip ourselfs
        if ( iterator.hasNext() ) {
            writeControlWord("sect");
        }

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to