As far as I understood pHPrint prints eoln at the end using putStrLn, not in handle. It was very suprising for me. Why it's do so? Is it a bug or a feature?
pHPrintStringOpt checkColorTty outputOptions Handle
handle str = do
realOutputOpts <-
case checkColorTty of
CheckColorTty -> hCheckTTY handle outputOptions
NoCheckColorTty -> pure outputOptions
liftIO $ do
renderIO handle $ layoutStringAnsi realOutputOpts str
putStrLn ""
I've found it while rendering in file using pHPrint and these empty lines surprised me
As far as I understood
pHPrint
printseoln
at the end usingputStrLn
, not in handle. It was very suprising for me. Why it's do so? Is it a bug or a feature?I've found it while rendering in file using
pHPrint
and these empty lines surprised me