From 94dcbab55fd784bab227b73e006677417f3b0615 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Sun, 24 Feb 2008 18:21:19 +0000 Subject: Modified disallowedInNode in Texinfo writer to correct list of disallowed characters. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1246 788f1e2b-df1e-0410-8736-df70ead52e1b --- Text/Pandoc/Writers/Texinfo.hs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Text/Pandoc/Writers') diff --git a/Text/Pandoc/Writers/Texinfo.hs b/Text/Pandoc/Writers/Texinfo.hs index a77b19d08..ac8778274 100644 --- a/Text/Pandoc/Writers/Texinfo.hs +++ b/Text/Pandoc/Writers/Texinfo.hs @@ -355,10 +355,8 @@ inlineForNode (Link lst _) = inlineListForNode lst inlineForNode (Image lst _) = inlineListForNode lst inlineForNode (Note _) = return empty --- XXX not sure what the complete set of illegal characters is. -disallowedInNode '.' = True -disallowedInNode ',' = True -disallowedInNode _ = False +-- periods, commas, colons, and parentheses are disallowed in node names +disallowedInNode c = c `elem` ".,:()" -- | Convert inline element to Texinfo inlineToTexinfo :: Inline -- ^ Inline to convert -- cgit v1.2.3