Skip to content

Commit f18ec5f

Browse files
sjakobimergify[bot]
authored andcommitted
Dhall.Pretty.layout: Add comment regarding whitespace stripping (#1538)
1 parent 53320c8 commit f18ec5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dhall/src/Dhall/Pretty/Internal.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,9 @@ prettyToStrictText = docToStrictText . Pretty.pretty
11821182
-- | Layout using 'layoutOpts'
11831183
--
11841184
-- Tries hard to fit the document into 80 columns.
1185+
--
1186+
-- This also removes trailing space characters (@' '@) /unless/
1187+
-- they are enclosed in an annotation.
11851188
layout :: Pretty.Doc ann -> Pretty.SimpleDocStream ann
11861189
layout = Pretty.removeTrailingWhitespace . Pretty.layoutSmart layoutOpts
11871190

0 commit comments

Comments
 (0)