Org writer: Fix output for linebreaks
Hard linebreaks in Org mode are represented by the string "\\" as the last characters in a line. Adds this feature to the Org-mode writer.
This commit is contained in:
parent
8bc09ce6c7
commit
36066699c3
2 changed files with 2 additions and 2 deletions
|
@ -271,7 +271,7 @@ inlineToOrg (Math t str) = do
|
|||
else "$$" <> text str <> "$$"
|
||||
inlineToOrg (RawInline f str) | f == "tex" || f == "latex" = return $ text str
|
||||
inlineToOrg (RawInline _ _) = return empty
|
||||
inlineToOrg (LineBreak) = return cr -- there's no line break in Org
|
||||
inlineToOrg (LineBreak) = return (text "\\\\" <> cr)
|
||||
inlineToOrg Space = return space
|
||||
inlineToOrg (Link txt (src, _)) = do
|
||||
case txt of
|
||||
|
|
|
@ -42,7 +42,7 @@ item.
|
|||
|
||||
Here's one with a bullet. * criminey.
|
||||
|
||||
There should be a hard line break
|
||||
There should be a hard line break\\
|
||||
here.
|
||||
|
||||
--------------
|
||||
|
|
Loading…
Add table
Reference in a new issue