dwightjack / grunt-premailer

Grunt wrapper task for Premailer
MIT License
114 stars 16 forks source link

> symbol gets converted to > #44

Open compains opened 7 years ago

compains commented 7 years ago

This media query

@media(max-width: 600px) {
    & > tbody > tr:nth-child(3) {
      table {
        border: 1px solid $c-slate-lighter;
        padding-bottom: 100px;
        position: relative;
      }
    }
}

gets converted to this

@media (max-width: 550px) {
      .solicitud >
      tbody >
      tr:nth-child(3) .cta {
        position: absolute;
        bottom: 30px;
        left: 30px;
        right: 30px;
        width: auto;
      }
}

So I have to fix this manually. I tried to find if there is any configuration option unsuccessfully. Not sure if it's a bug or a misuse from my side.

dmmihaylov commented 7 years ago

Same here. Any clues?

dwightjack commented 7 years ago

It looks like an issue on the premailer / nokogiri side. So times ago I had that problem reversed (entities got decoded). Apart from checking that your meta charset and file encoding is utf8, you could try updating those gems.

dmmihaylov commented 7 years ago

Thank you, @dwightjack! I just updated premailer and nogokiri to their latest versions, but the issue still remained. I'll report it on their repos as well.

For now I just added couple lines to your premailer.rb, to revert the chars.