WordPress.org

Ready to get started?Download WordPress

Forums

WP Minify
Minify removes carriage returns from PRE code blocks (3 posts)

  1. nununo
    Member
    Posted 2 years ago #

    Hi,

    Suddenly (I don't know what changed) all the code blocks on my posts started appearing in a long single line. After some investigation I realized that Minify was causing this.

    I understand that it removes carriage returns. But shouldn't it be smart enough to keep them inside PRE /PRE tags?

    For now I leave it disabled.

    Thanks in advance.

    Regards,
    Nuno

    http://wordpress.org/extend/plugins/wp-minify/

  2. oreio
    Member
    Posted 2 years ago #

    Similar problem here. Not a single long line for each PRE, but all *blank* lines are gone. If I have a PRE with this inside:

    Line 1
    Line 2
    
    Line 3

    With this plugin activated, it becomes:

    Line 1
    Line 2
    Line 3

    No blank line before Line 3. I've tried to just disable de HTML minification, but the problem persisted. Only disabling the plugin my PREs returned to normal behavior.

  3. Jonathan Landrum
    Member
    Posted 2 years ago #

    Problem continues. No solution? Is it possible to have it grep for pre or code and leave those tags alone?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags