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
This commit is contained in:
fiddlosopher 2008-02-24 18:21:19 +00:00
parent 839f77d81e
commit 94dcbab55f

View file

@ -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