paragraph spacing effected by image baselineShift ONLY if add a subsequent paragraph
My problem:
I add a paragraph with inline images set with a -50% baselineShift so that they appear to be centered in line. It looks fine, only the spacing appropriate to the shift appears between the two lines when the text covers two lines within the container (each line ended up with one image).
This text is in it's own container.
Then, I add another paragraph to the textflow, set such that it is appearing in it's own container with it's own controller. I am doing this because I need to be able to track some y values for formatting in the future (inserting images next to specific text containers).
When I add this second paragraph and container, two HUGE spaces appears, one before the first line of and one between the two lines of text in the paragraph BEFORE the newly added paragraph.
How is a subsequent paragraph affecting the spacing between lines it does not share a container with... the only thing they share is a TextFlow.
Note: in the XML below, a span with the same baseline shift as the image is added by the TLF, not by me. I have tried testing a scenario where I add a span after the image without the baseline shift and the automatically added span does not appear. This, however, does not fix my issue.
Also, all the funky symbols in the spans are a result of passing strings with <b> and <i> tags to create spans. I am planning on parsing them out and replacing them with formatting in a form acceptable by the TLF, but first I want to work out this issue.
I think I'm missing how this makes any sense?
TextFlow traced via the exporter before adding the next paragraph:
<TextFlow columnCount="inherit" columnGap="inherit" columnWidth="inherit" lineBreak="inherit" paddingBottom="inherit" paddingLeft="inherit" paddingRight="inherit" paddingTop="inherit" verticalAlign="inherit" whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008">
<p>
<span>ham-burg-er [or] ham-burg</span>
</p>
<p>
<span>Sounds Like: <b>haem</b> <i><b>buhr</b></i> g@r</span>
<img baselineShift="-50%" height="21.65" width="27.55" source="[object AudioButton]"/>
<span>[or] <b>haem</b> <i><b>buhrg</b></i></span>
<img baselineShift="-50%" height="21.65" width="27.55" source="[object AudioButton]"/>
<span baselineShift="-50%"></span>
</p>
</TextFlow>
TextFlow traced via the exporter after adding the next paragraph<TextFlow columnCount="inherit" columnGap="inherit" columnWidth="inherit" lineBreak="inherit" paddingBottom="inherit" paddingLeft="inherit" paddingRight="inherit" paddingTop="inherit" verticalAlign="inherit" whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008">
<p>
<span>ham-burg-er [or] ham-burg</span>
</p>
<p>
<span>Sounds Like: <b>haem</b> <i><b>buhr</b></i> g@r</span>
<img baselineShift="-50%" height="21.65" width="27.55" source="[object AudioButton]"/>
<span>[or] <b>haem</b> <i><b>buhrg</b></i></span>
<img baselineShift="-50%" height="21.65" width="27.55" source="[object AudioButton]"/>
<span baselineShift="-50%"></span>
</p>
<p baselineShift="50%">
<span>Part of Speech: noun</span>
</p>
</TextFlow>
