step icon indicating copy to clipboard operation
step copied to clipboard

CSS causes non-indent in 2nd lines of poetry

Open DavidIB opened this issue 4 years ago • 0 comments

There's a problem that is difficult to catch because it occurs infrequently in only some Bibles: image

The screenshot shows https://beta.stepbible.org/?q=version=WEB|reference=Ps.30&options=HVNUG which should soon be the same on www.STEPBible

The issue is that Level1 indents in poetry don't line up properly in certain circumstances. In the screenshot the line in v.2 "and you have healed me" should be on the red line, like the line in v.5 "Weeping may stay..." This issue always affects only the 2nd line in poetry and only if:

  • it is Level1 (most second lines are level2)
  • the first line does not have any style such as SmallCaps for "LORD" or italics etc.
  • the Level style is set before the verse marker, eg: occurs before (I don't know why it is coded this way - you'd expect the level code just before the first line, but it happens in some Bibles).

In these circumstances, a strange bit of CSS kicks in: .passageContentHolder a+br+.level1 { margin-right:-10px; }

This is 'strange' because I don't know what it is intended for. Is there some way to investigate what it is used for before REMing it out?

DavidIB avatar Jul 14 '21 14:07 DavidIB