We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b8db02 commit 6d2e966Copy full SHA for 6d2e966
tests/test_content.py
@@ -223,3 +223,9 @@ def test_escape():
223
content = Content.from_markup("\\[bold]Not really bold")
224
assert content.plain == "[bold]Not really bold"
225
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