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:
parent
839f77d81e
commit
94dcbab55f
1 changed files with 2 additions and 4 deletions
|
@ -355,10 +355,8 @@ inlineForNode (Link lst _) = inlineListForNode lst
|
||||||
inlineForNode (Image lst _) = inlineListForNode lst
|
inlineForNode (Image lst _) = inlineListForNode lst
|
||||||
inlineForNode (Note _) = return empty
|
inlineForNode (Note _) = return empty
|
||||||
|
|
||||||
-- XXX not sure what the complete set of illegal characters is.
|
-- periods, commas, colons, and parentheses are disallowed in node names
|
||||||
disallowedInNode '.' = True
|
disallowedInNode c = c `elem` ".,:()"
|
||||||
disallowedInNode ',' = True
|
|
||||||
disallowedInNode _ = False
|
|
||||||
|
|
||||||
-- | Convert inline element to Texinfo
|
-- | Convert inline element to Texinfo
|
||||||
inlineToTexinfo :: Inline -- ^ Inline to convert
|
inlineToTexinfo :: Inline -- ^ Inline to convert
|
||||||
|
|
Loading…
Add table
Reference in a new issue