Closed ckumar1 closed 3 years ago
Given that it's been working for a while, I suspect the newline is only introduced if your import hits a certain line length. Or possibly it depends on dhall version. I've tweaked this a little bit to support both, and because I don't trust regexes as far as I can throw them, I've added a test case too. Thanks for starting this!
Fixes an issue where the parentheses workaround for https://github.com/dhall-lang/dhall-haskell/issues/1672 was broken. After the dhall freeze step happens here, the remote import in
contents
actually gets broken into two lines and looks like this for classic:The following regex addresses this case, but I am open to workshopping it to be more robust if we know what other forms this could take.