New lines aren't replaced by br tags in HTML

Martin Pilkington's Avatar

Martin Pilkington

16 Apr, 2009 10:48 AM

If a user adds new lines to their ticket body, the HTML body still treats them as new lines. Didn't it used to replace them with br tags? Either way, new lines are lost in the HTML in both Lighthouse and apps using the API.

  1. 1 Posted by System on 06 Aug, 2009 04:47 PM

    System's Avatar

    This discussion was assigned to Jeremy McAnally, on ticket 480.

  2. 2 Posted by Rick on 06 Aug, 2009 04:48 PM

    Rick's Avatar

    This is probably due to how markdown works. You need to add two spaces after a line to get the single line break.

    We've been pushing a bunch of tweaks to the Tender formatter and finally have something that covers all the edge cases that people have reported. We'll be pushing this code to lighthouse soon.

  3. 3 Posted by Rick on 27 Aug, 2009 11:00 PM

    Rick's Avatar

    I just pushed it. We're supporting the same markdown tweaks that Github uses. In some simple cases, you can separate lines by a linebreak and have it translated to markdown linebreaks.

  4. Rick closed this discussion on 27 Aug, 2009 11:00 PM.

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

Keyboard shortcuts


? 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