Single line codeblocks trim trailing spaces


  • area_deu

    var i = 0; <= no trailing spaces
    var i = 0; <= 5 trailing spaces



  • Correct me if I'm wrong, but isn't that an HTML thing?


  • area_deu

    @RaceProUK said:

    Correct me if I'm wrong, but isn't that an HTML thing?

    Why would it be?
    0_1458476750795_discoursedoesitbetter_code.PNG
    Discourse does it right.

    HTML source inside Discourse editor preview:

    <p><code>var i = 0;</code> <= no trailing spaces<br><code>var i = 0;     </code> <= 5 trailing spaces</p>
    


  • Ah, you mean spaces inside code blocks; I thought you meant outside :blush:


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.