mirror of
https://github.com/quchen/prettyprinter.git
synced 2024-10-06 01:47:24 +03:00
Change layout function called for renderPretty in ansi-wl-pprint compat
Layout smart is more expensive, and can potentially hang in situations where layout pretty works fine.
This commit is contained in:
parent
7e32c010ec
commit
70918f1d26
@ -230,7 +230,7 @@ rational = New.pretty . show
|
||||
|
||||
renderPretty :: Float -> Int -> Doc -> SimpleDoc
|
||||
renderPretty ribbonFraction pageWidth
|
||||
= New.layoutSmart New.LayoutOptions
|
||||
= New.layoutPretty New.LayoutOptions
|
||||
{ New.layoutPageWidth = New.AvailablePerLine pageWidth (realToFrac ribbonFraction) }
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user