diff options
author | Yuchen Pei <hi@ypei.me> | 2022-09-16 10:12:51 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-09-16 10:12:51 +1000 |
commit | 85dc92a2e7688874ca7aa2e5030be723cd0fc51b (patch) | |
tree | 13f80cd0a095af46cc1c6b9fa0f62d55e8b33ba3 | |
parent | 0ff7bae1fa923f266b80975037126c5cb78a5ccb (diff) |
[server] restoring inline spaces in wikiparser
-rw-r--r-- | src/Servall/WikiParser.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Servall/WikiParser.hs b/src/Servall/WikiParser.hs index 56f2d94..7aad4ef 100644 --- a/src/Servall/WikiParser.hs +++ b/src/Servall/WikiParser.hs @@ -140,7 +140,7 @@ tempFieldP = do -- parse a field value tempFieldValueP :: Parser Text tempFieldValueP = do - T.concat <$> many' + (T.unwords . T.words . T.concat) <$> many' (choice [ skipRefP , renderInfoTemplate <$> templateP @@ -164,7 +164,7 @@ tempFieldValueP = do <|> (string "<ref>") ) ) - if T.null t then fail "simpleP" else return $ T.unwords $ T.words t + if T.null t then fail "simpleP" else return t commentP :: Parser () commentP = do |