sindresorhus/refined-github






The issue has been closed
GitHub bug: tabs are missing 2 characters in diffs #3052
notlmn posted onGitHub
I think that GitHub changed markup for diff UI containing diff markers. Right now markers are being hidden using visibility: hidden
(link), but we may need to use display: none
.
This fails when the first character of the line is a tab, in which case it gets collapsed. This can be clearly seen code starting with spaces (demo).
And yes, using display: none
on the pseudo elements did fix this for me, for code indented with tabs and spaces.
Test
- PR diff: https://github.com/sindresorhus/refined-github/pull/3051/files#diff-3607e5002f8b54915e7c24d1741d078bR1-R4
- Compare UI: https://github.com/sindresorhus/refined-github/compare/clean-notifications?expand=1