HTML
<p class="List_Item1_Additional"><span class="Verse_Number double_digit" id="NIV-GEN.1.31">31</span>God saw all that he had made, and it was very good. And there was evening, and there was morning—the sixth<span class="last_word_in_run">day.</span><span class="next_verse">1</span><span class="next_chapter">2</span></p><p class="List_Item1_Additional chapter"><span class="Chapter_Number" id="NIV-GEN.2">2</span><span class="Verse_Number single_digit verse_one" id="NIV-GEN.2.1">1</span>Thus the heavens and the earth were completed in all their vast<span class="last_word_in_short_run">array.</span>
The secret to fixing the last word problem, at least for now, is to wrap it in a spans
last_word_in_short_run
last_word_in_run
I define short as under 100 characters. That is around 3 lines for me.
CSS
.last_word_in_short_run:before {content: " "; /*background-color: green*/ ;}
.last_word_in_run:before {content: "\00a0"; /*background-color: red*/ ;}
.last_word_in_short_run { hyphenate-before: 4; hyphenate-after: 7; /*background-color: yellow */;}
.last_word_in_run { hyphenate-before: 4; hyphenate-after: 7; }
Michael can give you my email if you want further help offline.
Jim Albright
Wycliffe Bible Translators