diff --git a/Commands/Web.hs b/Commands/Web.hs index c7d31cd2d..ea049f739 100644 --- a/Commands/Web.hs +++ b/Commands/Web.hs @@ -168,12 +168,11 @@ hsp msgs f = do html =<< (io $ do hspenv <- hackEnvToHspEnv env (_,xml) <- runHSP html4Strict pagehsp hspenv - return $ addDoctype $ applyFixups $ renderAsHTML xml) + return $ addDoctype $ renderAsHTML xml) response $ set_content_type _TextHtmlUTF8 where title = "" addDoctype = ("\n" ++) - applyFixups = gsubRegexPR "\\[NBSP\\]" " " hackEnvToHspEnv :: Hack.Env -> IO HSPEnv hackEnvToHspEnv env = do x <- newIORef 0 @@ -229,11 +228,11 @@ searchform env = do a <- getParamOrNull "a" p <- getParamOrNull "p" let resetlink | null a && null p = - | otherwise = [NBSP]reset + | otherwise = <% nbsp %>reset where u = dropWhile (=='/') $ Hack.Contrib.Request.path env
@@ -255,8 +254,8 @@ addform env = do| - Date: [NBSP] - Description: [NBSP] + Date: <% nbsp %> + Description: <% nbsp %> |
| - [NBSP][NBSP] - Account: [NBSP] - Amount: [NBSP] + <% nbsp %><% nbsp %> + Account: <% nbsp %> + Amount: <% nbsp %> |