cdepillabout / pretty-simple

pretty-printer for Haskell data types that have a Show instance
https://hackage.haskell.org/package/pretty-simple
BSD 3-Clause "New" or "Revised" License
243 stars 29 forks source link

two strings next to each other get printed out without any space between them #14

Closed cdepillabout closed 6 years ago

cdepillabout commented 7 years ago

The following string:

[FileTreeFile "frontend/dist/hello.html" "\n<html>\n\t<head>\n\t</head>\n\t<body>\n\t\t<p>hello world</p>\n\t</body>\n</html>\n",FileTreeDirectory "frontend/dist/what" [FileTreeFile "frontend/dist/what/who.html" "\n<html>\n\t<head>\n\t</head>\n\t<body>\n\t\t<p>hello world</p>\n\t</body>\n</html>\n"]]

Gets pretty-printed as this:

[ FileTreeFile "frontend/dist/hello.html""
<html>
        <head>
        </head>
        <body>
                <p>hello world</p>
        </body>
</html>
"
, FileTreeDirectory "frontend/dist/what"[ FileTreeFile "frontend/dist/what/who.html""
<html>
        <head>
        </head>
        <body>
                <p>hello world</p>
        </body>
</html>
" ]
]

It looks like whitespace after a string is being removed.

cdepillabout commented 6 years ago

This was fixed by #33. Thanks @andrew-lei!