-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fix tab indentation in code view #10671
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
Conversation
Resolves: go-gitea#5596 Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #10671 +/- ##
==========================================
+ Coverage 43.6% 43.61% +0.01%
==========================================
Files 588 588
Lines 82485 82485
==========================================
+ Hits 35965 35974 +9
+ Misses 42059 42048 -11
- Partials 4461 4463 +2
Continue to review full report at Codecov.
|
In which case we should remove Liberation Mono from the suggested fonts I think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all in all - I like the change of this pull
@zeripath said:
I've filed a Firefox bug about it. I've tried two different versions of Liberation Mono from Fedora and they both seem to have this problem. There's also a historical Fedora bug, but that's been marked as resolved and I can't reproduce this issue in I'd prefer to leave it in the list for now. I think Liberation Mono is a fairly common font on Linux systems. |
make lg-tm work |
Thanks for the merge! |
Resolves: #5596
Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>
On my system (F31, Firefox 73), this almost works. It does move the code over by one character, without having the prefixed space affect the tab indentation. The issue is that Firefox can't seem to correctly calculate the offset of the size of 8 spaces in the selected font (Liberation Mono).
See attached screenshots:
When this font is disabled, it does work:
We can probably leave the width as-is, I just updated it to keep the same original width.