Added a tiny utility function unwrap() to unwrap wrapped text for matching expected strings in tests.

- Legacy-Id: 15396
This commit is contained in:
Henrik Levkowetz 2018-07-19 15:53:05 +00:00
parent db2c326e73
commit e53318084d

View file

@ -182,3 +182,7 @@ def texescape(s):
texescape_init()
t = s.translate(tex_escape_map)
return t
def unwrap(s):
return s.replace('\n', ' ')