Jayanga Kaushalya
Jayanga Kaushalya

Reputation: 2744

Remove extra blank lines from SyntaxHighlighter

I'm using SyntaxHighlighter in my blogger blog. But since few days it adds extra blank lines in my code. It only happens to new posts only. Can anyone please tell me how to remove these extra blank lines. I saw similar question. But it does not clearly answered. Thanks in advance.

Upvotes: 2

Views: 534

Answers (4)

Jayanga Kaushalya
Jayanga Kaushalya

Reputation: 2744

If we just copy and paste from windows notepad the blogger adds <br/> tags twice for cr and lf. So don't just copy and paste from notepad. Use blogger draft editor if it is really wanted.

Upvotes: 1

Prabath Siriwardena
Prabath Siriwardena

Reputation: 5921

This not exactly an issue with the SyntaxHighlighter - recently the blogger adds the <br /> tag for the ENTER.

Upvotes: 3

Ravindu
Ravindu

Reputation: 2550

Use the newest version of the syntaxhighlighter

Upvotes: 0

user915814
user915814

Reputation:

Or use HTML encoder. There are some sites that encode HTML. Use them before posting to blog.

Upvotes: 2

Related Questions