Skip to content

Commit

Permalink
Smarten it up
Browse files Browse the repository at this point in the history
  • Loading branch information
sjakobi authored and quchen committed Nov 5, 2019
1 parent ce0f71f commit cce4098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prettyprinter/src/Data/Text/Prettyprint/Doc/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ removeTrailingWhitespace = go (RecordedWhitespace [] 0)
commitWhitespace is0 n0 = commitLines is0 . commitSpaces n0
where
commitLines [] = id
commitLines (i:is) = (\sds -> foldr (\_ -> SLine 0) sds is) . SLine i
commitLines (i:is) = foldr (\_ f -> SLine 0 . f) (SLine i) is

commitSpaces 0 = id
commitSpaces 1 = SChar ' '
Expand Down

0 comments on commit cce4098

Please sign in to comment.