papyri/xsugar

`<gap reason="illegible" unit="character"/>.` gets round-tripped to `.<lb/>`

ryanfb opened this issue · 3 comments

Example:

 <gap reason="illegible" quantity="4" unit="character"/>.

Becomes:

 .<lb n="4"/>

N.B.: this only gets triggered with a trailing space after the period.

Edit: In trying to construct a minimal test case for this off p.turner.22.xml, it also seems that the gap needs to be followed (on the next line) by an <unclear> inside a <choice>. Though there are probably other things that can trigger it as well.

Still happening in e.g. o.ashm.shelt.12.xml.

In o.ashm.shelt.12.xml, this is seemingly triggered by the <expan> on the next line.