Fix more escape sequences

This commit is contained in:
Guillaume Ayoub 2018-10-26 15:32:34 +02:00
parent efd42751cc
commit ae06a6ce4b
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ def add_box_marker(box, counter_values, get_image_from_uri):
box.outside_list_marker = marker_box
def is_whitespace(box, _has_non_whitespace=re.compile('\S').search):
def is_whitespace(box, _has_non_whitespace=re.compile('\\S').search):
"""Return True if ``box`` is a TextBox with only whitespace."""
return isinstance(box, boxes.TextBox) and not _has_non_whitespace(box.text)