Skip to content

Commit

Permalink
Better error messages for RTL scripts...
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Sep 6, 2024
1 parent c789b6d commit 2f6c19b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/shaperglot/checks/no_orphaned_marks.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def execute(self, checker) -> None:
)
elif pos.x_offset == 0 and pos.y_offset == 0: # Suspicious
passed = False
if previous is None:
previous = "the base glyph when " + self.input.describe()
checker.results.fail(
check_name="no-orphaned-marks",
result_code="orphaned-mark",
Expand Down

0 comments on commit 2f6c19b

Please sign in to comment.