git.iko.soy/typeable/pandoc
on master help sign in
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

commit94dcbab55fd784bab227b73e006677417f3b0615 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSun 24 Feb 2008, 18:21 (19 years ago) parent839f77d
1 file changed+2−4
Text/Pandoc/Writers/Texinfo.hs+2−4
Text/Pandoc/Writers/Texinfo.hs+2−4
@@ -355,10 +355,8 @@ inlineForNode (Link lst _) = inlineListForNode lst
355355inlineForNode (Image lst _) = inlineListForNode lst
356356inlineForNode (Note _) = return empty
357357
358−-- XXX not sure what the complete set of illegal characters is.
359−disallowedInNode '.' = True
360−disallowedInNode ',' = True
361−disallowedInNode _ = False
358+-- periods, commas, colons, and parentheses are disallowed in node names
359+disallowedInNode c = c `elem` ".,:()"
362360
363361-- | Convert inline element to Texinfo
364362inlineToTexinfo :: Inline -- ^ Inline to convert