Code Blocks in Knowledge Base

adam's Avatar

adam

14 Mar, 2009 03:15 AM

Hi,

Just been adding some knowledge base articles an just wondered if you can make code blocks not return an empty line at the end.

At the moment you have something like:

<pre>
    <code>code in here</code>
</pre>

The line break after the </code> is causing a new line to be entered on the end of the code block.

Example: http://help.codebasehq.com/faqs/getting-started-11/creating-an-ssh-...

Thanks,
Adam

  1. 1 Posted by System on 01 May, 2009 11:44 PM

    System's Avatar

    A Lighthouse ticket was created for this discussion

  2. 2 Posted by Kyle Neath (Git... on 01 May, 2009 11:38 PM

    Kyle Neath (GitHub Staff) 's Avatar

    Sorry for the late reply -- but thanks for the heads up. I've added it to our todo of improving formatting.

  3. 3 Posted by rick on 27 May, 2009 06:52 AM

    rick's Avatar

    Fixed. The line break was actually after the <code> and before the </code> tags. It had to do with the way I was storing bits of the formatted lines in an array and joining them back up again. I ended up rewriting the whole thing, again :)

  4. Nicole closed this discussion on 10 Dec, 2009 08:58 PM.

Discussions are closed to public comments.
If you need help with Tender 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