where respTextCode =
do char '['
a <- atom
- sp
- b <- option "" respTextCodeText
+ b <- option "" (sp >> respTextCodeText)
char ']'
sp
- return (a ++ " " ++ b)
+ case b of
+ [] -> return a
+ _ -> return $ a ++ " " ++ b
respTextCodeText = many1 (noneOf (']' : crlf))
\ No newline at end of file