[sword-devel] Poetry group not starting on new line in module

johnduffy at cgcf.net johnduffy at cgcf.net
Mon Nov 9 07:25:50 MST 2009


DM,

That would be great to see the fix either with or without the looking
behind/ahead.

I presume that this fix would not apply to Xiphos or BibleCS.  Is that
correct?


 
John Duffy

-----Original Message-----
From: DM Smith [mailto:dmsmith at crosswire.org] 
Sent: 09 November 2009 14:12
To: sword-devel at crosswire.org
Subject: Re: [sword-devel] Poetry group not starting on new line in module

Based on the output John sent me, I see what the BibleDesktop problem 
is. Our stylesheet is ignoring <lg sID="xx"/> and also <lg eID="xx"/>.

It is a relatively simple fix. I just need to get them to output a <br/> 
when generating HTML.

Actually, in the sID case, if the former sibling element is not a block 
element then give a <br/>. If it is the first child, then there is 
nothing to do.

And in the case of an eID, it needs to look forward in the document. If 
the following sibling element is a block element then we emit a <br/>. 
If it is the last child, then there is nothing to do.

To not look behind or ahead will cause extra blank lines at various 
points. But even that is better than what you got.

In Him,
     DM




More information about the sword-devel mailing list