Skip to content

Commit e533180

Browse files
committed
Added a tiny utility function unwrap() to unwrap wrapped text for matching expected strings in tests.
- Legacy-Id: 15396
1 parent db2c326 commit e533180

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ietf/utils/text.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,7 @@ def texescape(s):
182182
texescape_init()
183183
t = s.translate(tex_escape_map)
184184
return t
185+
186+
def unwrap(s):
187+
return s.replace('\n', ' ')
188+

0 commit comments

Comments
 (0)