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

  1. nununo
    Posted 4 years ago #


    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.



  2. oreio
    Posted 4 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
    Posted 4 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

  • WP Minify
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic