-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
(GitHub code show whitespace) shows space character on empty lines? #65
Comments
Hi @animatedantmo! It looks like a code wrap style or script is being applied. When the code wraps, the new line will start at the beginning of the line. If not, then maybe it is this userscript's fault because it's adding content to make the whitespace visible. When I have the code wrap toggle script running, I'm seeing the same thing; but my question is what are you expecting to happen when the code wraps? |
Excellent point @Mottie, I thought the same thing concerning the text wrapping. But then I saw the behavior on lines without any. Notice line 107 displaying the behavior in the screenshot below But within the IDE it is fine and there is no wrapping Is this still the expected behavior? |
Hmm, I'm not sure because you're seeing something different from me. Previously... on the diff views, GitHub would add an extra space (or two?) to every line to allow space for the I'm no longer seeing a leading space, or a space next to the GitHub also sets their tab indent to be 8 spaces. You'll see that change to 2 spaces because of my GitHub Dark setting. |
Ive added a different white space rendering script to debug a bit and that leading whitespace is still there. But without the odd wrapping if that helps |
Is this still an issue? |
Please share a link to the page where you see this issue. For me, the carriage returns in the JS files in this repo are not adding an extra CR that I see in the screenshots. |
The repo is private but I went ahead and setup a shell angular project with a PR that exhibits the issue. Please take a look at |
Ok, so it looks like GitHub is adding an extra |
I am using version Chrome Version 71.0.3578.98, 1.2.4 of the GitHub code show whitespace script and the split view for diffs. I am not sure if this is how things always were displayed but I noticed that each line is being prefixed with a white space character. It even seems to throw off the display of lines that only contain line breaks.
This is the scss file as displayed with the script
This is that same scss file as displayed in my editor with whitespace displayed
Notice line 8 in the editor vs how its displayed in the diff, specifically the way it seems to wrap.
Is there something I should be doing differently?
The text was updated successfully, but these errors were encountered: