Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding   to empty lines changes (and messes up) the actual source code #344

Open
dhm80 opened this issue Apr 11, 2016 · 0 comments
Open

Comments

@dhm80
Copy link
Contributor

dhm80 commented Apr 11, 2016

In the class crayon_formatter.class.php you replace a blank line with a protected space:

// If line is blank, add a space so the div has the correct height
if ($code_line == '') {
    $code_line = ' ';
}

I guess (at this time) this is needed to display empty lines correctly but the problem is that you change the actual content. In some cases copying the source code with the extra added space ( ) messes up the copied source code.

So it would be great if you maybe added a CSS class instead of a space or something like that? Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant