About Blog Gallery Twit

BBCode on Byteflow

I am not a markdown user by default, and I was excited to see that BBCode was included in the drop down for my blog post. I noticed that my code blocks were getting additional carriage return in my posts, taking up some extra real estate on the page. I know this doesn’t do it in places that I’ve used BBCode before, like phpBB.

I converted my existing posts into Markdown for the time being, and I’ll probably dive into the BBCode parser and see if I can fix what’s going on with the additional br tags.

Update — If you’re using some similar CSS to mine here and you experience the oddness with BBCode you can edit the BBCode.py. On line 565 just comment out the replace statement.

def _prepare(self, bbcode):
    # Replace newlines with 'soft' brs
    #bbcode = bbcode.replace("\n", '[softbr]')

    # Replace emoticons with context-sensitive emoticon tags
    #for emoticon in _EMOTICON_LIST:
        #bbcode = bbcode.replace(emoticon,
            #'[emoticon]' + emoticon + '[/emoticon]')
    return bbcode
Add post to: Delicious Reddit Slashdot Digg Technorati Google
Comment

Comments

No comments for this post

Comment form for «BBCode on Byteflow»

Required. 30 chars of fewer.

Required.

captcha image Please, enter symbols, which you see on the image