I am trying to understand the logic related to determining if something 
is the "last area" generated for a LM, in this case for an Inline LM. 
If I understand it correctly the Line LM sets the LAST_AREA flag in the 
context when it generates the last area for a line. The Inline LM then 
checks if the LAST_AREA flag is set and if itself deals with its last 
child LM to determine if this is the last area for it. But if we have a 
long fo:inline stretching multiple lines this seem to give the wrong 
results from the Inline LM perspective. For example if the fo:inline 
finishes in the middle of a line followed by more text the Line LM will 
not set the LAST_AREA flag when calling addAreas on the Inline LM as 
there are more areas on the line. Therefore the Inline LM "thinks" its 
not done with yet although it is and the reverse is true on the first 
line of a multi-line inline.

Overall I am confused and wonder if whoever wrote this (or someone who 
understands this area of the code) can shed some light on it for me 
please.

In short, I need to know when the last area for a fo:inline is created 
and I am not clear at all how to do this.

Thanks

Manuel

Reply via email to