From 534e2b002538d64c576f9ebb12ea5acf46fa9d35 Mon Sep 17 00:00:00 2001 From: piegames Date: Tue, 6 Feb 2024 15:50:32 +0100 Subject: [PATCH] Experiment --- src/Nixfmt/Pretty.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nixfmt/Pretty.hs b/src/Nixfmt/Pretty.hs index dd95e186..181435dd 100644 --- a/src/Nixfmt/Pretty.hs +++ b/src/Nixfmt/Pretty.hs @@ -534,7 +534,7 @@ instance Pretty Expression where -- not chainable binary operators: <, >, <=, >=, ==, != pretty (Operation a op@(Ann _ op' _) b) | op' == TLess || op' == TGreater || op' == TLessEqual || op' == TGreaterEqual || op' == TEqual || op' == TUnequal - = pretty a <> softline <> pretty op <> hardspace <> pretty b + = group $ pretty a <> group' RegularG (line <> pretty op <> hardspace <> pretty b) -- all other operators pretty operation@(Operation _ op _) = let