diff options
author | John MacFarlane <jgm@berkeley.edu> | 2010-03-23 15:05:33 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2010-03-23 15:05:33 -0700 |
commit | 921d0f30815509af5a75979d6b61e1ff49df5f69 (patch) | |
tree | b5e9e7501ad1ef4d88c55636883eb34baa124c3f /src/Text/Pandoc | |
parent | 09ca37bd62ca953fff69b58959e398f9ec31834f (diff) | |
download | pandoc-921d0f30815509af5a75979d6b61e1ff49df5f69.tar.gz |
Shared: enamed stringToURI -> escapeURI.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Shared.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs index 0e1ace858..b9324b7e4 100644 --- a/src/Text/Pandoc/Shared.hs +++ b/src/Text/Pandoc/Shared.hs @@ -28,7 +28,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Utility functions and definitions used by the various Pandoc modules. -} -module Text.Pandoc.Shared ( +module Text.Pandoc.Shared ( -- * List processing splitBy, splitByIndices, @@ -43,7 +43,7 @@ module Text.Pandoc.Shared ( stripFirstAndLast, camelCaseToHyphenated, toRomanNumeral, - stringToURI, + escapeURI, wrapped, wrapIfNeeded, wrappedTeX, @@ -233,8 +233,8 @@ toRomanNumeral x = -- | Escape unicode characters in a URI. Characters that are -- already valid in a URI, including % and ?, are left alone. -stringToURI :: String -> String -stringToURI = escapeURIString isAllowedInURI . encodeString +escapeURI :: String -> String +escapeURI = escapeURIString isAllowedInURI . encodeString -- | Wrap inlines to line length. wrapped :: Monad m => ([Inline] -> m Doc) -> [Inline] -> m Doc |