XML: don't escape \160 (nonbreaking space) as an entity.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1770 788f1e2b-df1e-0410-8736-df70ead52e1b
commit8fce9c54ece087311ccf3240b265f6b3c8144773
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>
dateFri 1 Jan 2010, 04:12 (17 years ago)
parentc7149d3
src/Text/Pandoc/XML.hs+1−2
@@ -53,12 +53,11 @@ escapeCharForXML x = case x of
5353 '<' -> "<"
5454 '>' -> ">"
5555 '"' -> """
56− '\160' -> " "
5756 c -> [c]
5857
5958-- | True if the character needs to be escaped.
6059needsEscaping :: Char -> Bool
61−needsEscaping c = c `elem` "&<>\"\160"
60+needsEscaping c = c `elem` "&<>\""
6261
6362-- | Escape string as needed for XML. Entity references are not preserved.
6463escapeStringForXML :: String -> String