We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03d7bf0 commit ae700e5Copy full SHA for ae700e5
src/Nix/Pretty.hs
@@ -114,13 +114,13 @@ wrapPath :: OperatorInfo -> NixDoc ann -> Doc ann
114
wrapPath op sub =
115
bool
116
(precedenceWrap op sub)
117
- ("\"" <> antiquote sub <> "\"")
+ (dquotes $ antiquote sub)
118
(wasPath sub)
119
120
-- | Handle Output representation of the string escape codes.
121
prettyString :: NString (NixDoc ann) -> Doc ann
122
prettyString (DoubleQuoted parts) =
123
- "\"" <> foldMap prettyPart parts <> "\""
+ dquotes $ foldMap prettyPart parts
124
where
125
prettyPart (Plain t) = pretty $ escapeString t
126
prettyPart EscapedNewline = "''\\n"
0 commit comments