diff --git a/boards/mdx_neboard.py b/boards/mdx_neboard.py --- a/boards/mdx_neboard.py +++ b/boards/mdx_neboard.py @@ -127,7 +127,7 @@ def render_reflink(tag_name, value, opti def bbcode_extended(markup): - parser = bbcode.Parser() + parser = bbcode.Parser(newline='
') parser.add_formatter('post', render_reflink, strip=True) parser.add_simple_formatter('quote', u'%(value)s') @@ -139,7 +139,7 @@ def bbcode_extended(markup): u'%(value)s') parser.add_simple_formatter('code', u'
%(value)s
')
- return parser.format(markup)
+ return '%s
' % parser.format(markup) formatters = [ QuotePattern, diff --git a/boards/static/css/md/base_page.css b/boards/static/css/md/base_page.css --- a/boards/static/css/md/base_page.css +++ b/boards/static/css/md/base_page.css @@ -132,14 +132,6 @@ p { .form-errors { font-weight: bolder; vertical-align: middle; - padding: 3px; - background: repeating-linear-gradient( - -45deg, - #330, - #330 10px, - #111 10px, - #111 20px - ); } .post-form input:not([name="image"]), .post-form textarea { diff --git a/boards/static/js/thread.js b/boards/static/js/thread.js --- a/boards/static/js/thread.js +++ b/boards/static/js/thread.js @@ -35,10 +35,10 @@ function moveCaretToEnd(el) { } function addQuickReply(postId) { - var textToAdd = '[post]' + postId + '[/post]\n\n'; + var textToAdd = '[post]' + postId + '[/post]\n'; var selection = window.getSelection().toString(); if (selection.length > 0) { - textToAdd += '[quote]' + selection + '[/quote]\n\n'; + textToAdd += '[quote]' + selection + '[/quote]\n'; } var textAreaId = 'textarea';