Extra line breaks added to source code

In recent weeks, the formatting for source code (@@@) has started adding a bunch of extra line breaks for each single line break in the text. Please fix, so only one break per actual break is rendered when posted.

  1. Hi Nick,

    Can you link a ticket where you are seeing this behavior?

    Thanks.

  2. Hi Nick,

    We updated our Markdown library a while back and this may have been a side effect. That being said, the @@@ characters should always be surrounded by new lines, and if you add new lines they will behave correctly. More specifically, you should use:

    foo
    
    @@@
    bar
    @@@
    

    rather than

    foo
    @@@
    bar
    @@@
    

    I'll create a ticket and see that we fix this behavior in the future. In the meantime, simply add the new lines and you will be all set.

  3. Sweet, that works! FWIW, I got in the habit of not adding additional line breaks above and below the @@@ because the previous version used to add additional line breaks, so I was compensating. All good - I'll start using this syntax. Thanks for the speedy reply.

  4. Hey Nick,

    The library we used for Markdown was broken in all sorts of ways, which is why we upgraded it in the first place. So you may have been using a bug in the library to fix another one. Ha..

    Anyway, glad you have something that works for you now.

  5. Julien closed this discussion on 02 Apr, 2013 05:17 PM.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions