Skip to content

Line breaks removed from pre tags. #13

@akester

Description

@akester

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions