<div>I was debugging a problem in the XUL BPBible where it was filling in a table for a gospel harmony inside the render filter.</div>
<div>Thus, it was calling RenderText inside a RenderText (though on a different module). It was ending up with the last verse in the table coming before the table, which was a bit annoying.</div>
<div> </div>
<div>Digging through the code, I finally discovered what the problem was.</div>
<p>In SWModule's RenderText, there is this:</p>
<div> static SWBuf local;<br> if (buf)<br> local = buf;<br><br> SWBuf &tmpbuf = (buf) ? local : getRawEntryBuf();</div>
<div> </div>
<div>So what was happening was that in the middle of the render filter, it was swapping new buffer contents in, thus ending up with what last came out at the start to be added onto in the first level of render filter.</div>
<div> </div>
<div>So there can only ever be one RenderText call where the buffer is supplied. </div>
<div>If a SWBuf could be passed in this would allow a work-around. Likewise, if the local buf was on the module, rather than global, this would help. </div>
<div> </div><a href="http://www.apostlesbible.com/">
<div></div></a>God Bless,<br>Ben<br>-------------------------------------------------------------------------------------------<br>Multitudes, multitudes,<br> in the valley of decision!<br>For the day of the LORD is near<br>
in the valley of decision.<br><br>Giôên 3:14 (ESV)<br>