Il 27/05/2011 10:49, Vincent van Ravesteijn ha scritto:
In principle I agree (more elegant, more c++, more STL-like, etc.), but it
was doing something strange/weird: consider the buffer with a single par,
with a footnote inside. As it was before, it was iterating 2 paragraphs:
the outer one (producing "[footnote: foo]") and then the inner one in the
footnote (producing "foo": total is "[footnote: foo]foo"). That is, it was
behaving like a DocIterator when you advance it.
Instead, here I want only to iterate outer paragraph(s) (mostly it's only 1,
but sometimes we have 2 if we search for something unusual) and textify them.
So, the problem is that Paragraph::stringify already goes into the nested
paragraphs.

not really. I think the real problem is my mistaken interpretation about
what a ParIterator is. I thought it iterates outer paragraphs only in a
collection, instead here it's iterating all the defined paragraphs (outer &
nested) a'la DocIterator.

    T.

Reply via email to