-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels