Skip to content

Line breaks removed from pre tags. #13

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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