Suppress empty line
This commit is contained in:
parent
bcd2dfcffc
commit
ef375668d1
@ -57,7 +57,11 @@ inter c bs = foldr1 (\x y -> x . (c:) . y) bs
|
||||
|
||||
convert :: ToString a => Options -> a -> String
|
||||
convert opt@Options { outputStyle = LispStyle } x = toLisp opt x "\n"
|
||||
convert opt@Options { outputStyle = PlainStyle } x = toPlain opt x "\n"
|
||||
convert opt@Options { outputStyle = PlainStyle } x
|
||||
| str == "\n" = ""
|
||||
| otherwise = str
|
||||
where
|
||||
str = toPlain opt x "\n"
|
||||
|
||||
class ToString a where
|
||||
toLisp :: Options -> a -> Builder
|
||||
|
Loading…
Reference in New Issue
Block a user