Skip to content

Commit

Permalink
Changed a comment to clarify these functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Dec 31, 2008
1 parent ebbec6f commit 762dd34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Gitit/HAppS.hs
Expand Up @@ -33,10 +33,10 @@ import Control.Monad (liftM)
import Data.ByteString.Lazy.UTF8 (toString)
import Codec.Binary.UTF8.String (encodeString, decodeString)

-- HAppS's look, lookRead, and lookCookieValue encode unicode characters
-- (outside the standard latin1 range) using decimal character
-- references. For gitit's purposes, we want them to return regular
-- unicode characters instead.
-- Contents of an HTML text area or text field generated by Text.XHtml
-- will often contain decimal character references. We want to convert these
-- to regular unicode characters. We also need to use toString to
-- convert from UTF-8, since HAppS doesn't do this.

look :: String -> RqData String
look = liftM (decodeCharacterReferences . toString) . HAppS.Server.lookBS
Expand Down

0 comments on commit 762dd34

Please sign in to comment.