googlearchive / code-prettify

An embeddable script that makes source-code snippets in HTML prettier.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

White space indentation added on Firefox when using linenums class

HowToSolutions opened this issue · comments

Hi,

I just noticed that when I copy the highlighted code using the code-prettify and it is using linenums class in Firefox and then I paste in text editor, it also inserts empty spaces before each line. This only seems to happen in Firefox and when all the code is selected. If I miss a character at the beginning or the end, then this does not occur.

The highlighted code found at Gallery of themes for code prettify can be used as an example of this behavior.

This behavior is especially annoying when copying the Python code. :)