Skip to content

Commit 9291397

Browse files
committed
handle_missing_glyphs: fix handling of special space characters
This fixes the unnumbered_headings and nobreak_space regression tests.
1 parent 5d29bdc commit 9291397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rinoh/paragraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ def handle_missing_glyphs(span, container):
443443
string = []
444444
for char in span.text(container):
445445
try:
446-
if char not in '\n\t':
446+
if char not in '\n\t\N{ZERO WIDTH SPACE}\N{NO-BREAK SPACE}':
447447
get_glyph(char)
448448
string.append(char)
449449
except MissingGlyphException:

0 commit comments

Comments
 (0)