No double :
in logmsgs without a location
This commit is contained in:
parent
2bf4c80580
commit
d7984faf79
@ -60,8 +60,8 @@ gmLog level loc' doc = do
|
||||
GhcModLog { gmLogLevel = level' } <- gmlHistory
|
||||
|
||||
let loc | loc' == "" = empty
|
||||
| otherwise = text loc'
|
||||
msg = gmRenderDoc $ (gmLogLevelDoc level <+>: loc) <+>: doc
|
||||
| otherwise = empty <+>: text loc'
|
||||
msg = gmRenderDoc $ (gmLogLevelDoc level <> loc) <+>: doc
|
||||
msg' = dropWhileEnd isSpace msg
|
||||
|
||||
when (Just level <= level') $
|
||||
|
Loading…
Reference in New Issue
Block a user