Skip to content

Commit 6d2e966

Browse files
committed
test
1 parent 6b8db02 commit 6d2e966

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_content.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,3 +223,9 @@ def test_escape():
223223
content = Content.from_markup("\\[bold]Not really bold")
224224
assert content.plain == "[bold]Not really bold"
225225
assert content.spans == []
226+
227+
228+
def test_strip_control_codes():
229+
"""Test that control codes are removed from content."""
230+
assert Content("foo\r\nbar").plain == "foo\nbar"
231+
assert Content.from_markup("foo\r\nbar").plain == "foo\nbar"

0 commit comments

Comments
 (0)