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 80f5902 commit 5cde4d2Copy full SHA for 5cde4d2
src/OrgMode.hs
@@ -17,9 +17,4 @@ renderTable header rows =
17
renderRow columns =
18
"|" <> T.concat (intersperse "|" $ map escapeColumn columns) <> "|"
19
escapeColumn :: T.Text -> T.Text
20
- escapeColumn =
21
- T.concatMap
22
- (\x ->
23
- if x `elem` charEscapeList
24
- then T.pack ['\\', x]
25
- else T.singleton x)
+ escapeColumn = T.filter $ not . (`elem` charEscapeList)
test/OrgModeTest.hs
@@ -18,7 +18,7 @@ spec =
\|1|||\n\
\||||\n\
\|1|2|3|\n\
- \|\\|~|||\n") $
+ \|~|||\n") $
renderTable
["hello", "world", "foo"]
[ ["1", "2", "3"]
0 commit comments