Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not all whitespace in <pre> tags is preserved #28

Closed
ozupey opened this issue Jan 22, 2019 · 1 comment
Closed

Not all whitespace in <pre> tags is preserved #28

ozupey opened this issue Jan 22, 2019 · 1 comment

Comments

@ozupey
Copy link

ozupey commented Jan 22, 2019

What is this feature about (expected vs actual behaviour)?

While spaces and tabs are preserved, newlines inside <pre> tags are gone.

string(23) "<pre>foo	bar		zoo</pre>"

How can I reproduce it?

$html = '<pre>
foo
        bar
                zoo
</pre>';

$htmlMin = new voku\helper\HtmlMin();
$result = $htmlMin->minify($html);

var_dump($result);

Does it take minutes, hours or days to fix?

Unsure

Any additional information?

Using 3.1.3 installed via composer on PHP 7.2.10.

voku added a commit that referenced this issue Feb 28, 2019
-> via update from "simple_html_dom"
@voku
Copy link
Owner

voku commented Feb 28, 2019

fixed in version 3.1.5

@voku voku closed this as completed Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants