Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Texinfo writer: Escape special characters in node titles.

This fixes a problem pointed out by Joost Kremers.  Pandoc used
to escape an '@' in a chapter title, but not in the corresponding
node title, leading to invalid texinfo.
  • Loading branch information...
commit 77125ea68c4c59285a02275f592eb5d41dd3e840 1 parent 2141e82
John MacFarlane authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/Text/Pandoc/Writers/Texinfo.hs
View
3  src/Text/Pandoc/Writers/Texinfo.hs
@@ -344,7 +344,8 @@ inlineListToTexinfo lst = mapM inlineToTexinfo lst >>= return . hcat
-- | Convert list of inline elements to Texinfo acceptable for a node name.
inlineListForNode :: [Inline] -- ^ Inlines to convert
-> State WriterState Doc
-inlineListForNode = return . text . filter (not . disallowedInNode) . stringify
+inlineListForNode = return . text . stringToTexinfo .
+ filter (not . disallowedInNode) . stringify
-- periods, commas, colons, and parentheses are disallowed in node names
disallowedInNode :: Char -> Bool
Please sign in to comment.
Something went wrong with that request. Please try again.