-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Verses have UsfmStyleType.CHARACTER, but never have an end_marker. The code in usfm_stylesheet.py gives a default end_marker to every CHARACTER style marker, including verse markers.
Changing this condition to exclude verses:
if tag.style_type == UsfmStyleType.CHARACTER and end_marker is None:
e.g.
if tag.style_type == UsfmStyleType.CHARACTER and end_marker is None and tag.marker != 'v':
might be an improvement.
Consider whether it would be an improvement to log a warning or raise an error when we come across a Stylesheet that doesn't specify an end_marker for CHARACTER style markers other than verses.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
🔖 Ready