diff options
author | John MacFarlane <jgm@berkeley.edu> | 2010-12-09 08:52:09 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2010-12-09 08:52:09 -0800 |
commit | 88a40685b8d79dd97d16e2b3988e0e927ec24ec0 (patch) | |
tree | 550f01f0f9aeca1209156e46f44ab70c5bb00218 /src/Text/Pandoc | |
parent | 9ead748cc9cd79a8f490776d4d5dfe6cd0beb6f1 (diff) | |
download | pandoc-88a40685b8d79dd97d16e2b3988e0e927ec24ec0.tar.gz |
Textile reader: better treatment of acronyms.
We now parse PBS(Public Broadcasting System) as if it were
"PBS (Public Broadcasting System)".
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Readers/Textile.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Textile.hs b/src/Text/Pandoc/Readers/Textile.hs index d52b1fd58..d5add8f88 100644 --- a/src/Text/Pandoc/Readers/Textile.hs +++ b/src/Text/Pandoc/Readers/Textile.hs @@ -395,7 +395,7 @@ str = do optional $ try $ do lookAhead (char '(') notFollowedBy' mark - charsInBalanced '(' ')' -- drop acronym explanation + getInput >>= setInput . (' ':) -- add space before acronym explanation -- parse a following hyphen if followed by a letter -- (this prevents unwanted interpretation as starting a strikeout section) result <- option xs $ try $ do |