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

--- Comment #9 from Glenn Adams <gad...@apache.org> 2012-04-26 13:21:57 UTC ---
(In reply to comment #8)
> 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");
>         }

ah, right; forgot to skip this section; here is an improved version that
doesn't rely on iteration; please test, and if it resolves it, move this bug to
closed... thanks!

http://svn.apache.org/viewvc?rev=1330838&view=rev

-- 
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