We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86112e6 commit a783de2Copy full SHA for a783de2
1 file changed
test/test_regression.py
@@ -591,3 +591,10 @@ def test_asciidoc_without_trailing_whitespace():
591
result = tabulate([["longtext"]], headers=("bar",), tablefmt="asciidoc")
592
expected = '[cols="<10",options="header"]\n|====\n| bar\n| longtext\n|===='
593
assert_equal(expected, result)
594
+
595
596
+def test_github_escape_pipe_character():
597
+ "Regression: github format must escape pipe character with a backslash (issue #241)"
598
+ result = tabulate([["foo|bar"]], headers=("spam|eggs",), tablefmt="github")
599
+ expected = '| spam\\|eggs |\n|-------------|\n| foo\\|bar |'
600
+ assert_equal(expected, result)
0 commit comments