Tags such as pre that requires white space and line breaks to maintain formatting are compressed during template compilation, rendering data in pre tags unreadable.
This appears to be related to $dom->setOptions in Inky.php (line 187), as the Dom object does not preserve line breaks by default. Updating the call to include 'preserveLineBreaks' => true, in the options fixes this, but I'm not sure if setting this globally is the best approach.
I'm happy to open a pull request, I just wanted to see if there was feedback on if this is the route to go.
Tags such as
prethat requires white space and line breaks to maintain formatting are compressed during template compilation, rendering data inpretags unreadable.This appears to be related to
$dom->setOptionsin Inky.php (line 187), as the Dom object does not preserve line breaks by default. Updating the call to include'preserveLineBreaks' => true,in the options fixes this, but I'm not sure if setting this globally is the best approach.I'm happy to open a pull request, I just wanted to see if there was feedback on if this is the route to go.