Extra line breaks added to source code

Nick Miller's Avatar

Nick Miller

02 Apr, 2013 03:50 PM

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. 1 Posted by Julien on 02 Apr, 2013 04:44 PM

    Julien's Avatar

    Hi Nick,

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

    Thanks.

  2. 2 Posted by Nick Miller on 02 Apr, 2013 04:45 PM

    Nick Miller's Avatar
  3. 3 Posted by Julien on 02 Apr, 2013 04:53 PM

    Julien's Avatar

    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.

  4. 4 Posted by Nick Miller on 02 Apr, 2013 04:56 PM

    Nick Miller's Avatar

    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.

  5. 5 Posted by Julien on 02 Apr, 2013 04:58 PM

    Julien's Avatar

    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.

  6. 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