Skip to content

Code indents not displaying properly #14062

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

Closed
2 of 6 tasks
Mango0x45 opened this issue Dec 19, 2020 · 1 comment
Closed
2 of 6 tasks

Code indents not displaying properly #14062

Mango0x45 opened this issue Dec 19, 2020 · 1 comment

Comments

@Mango0x45
Copy link

  • Gitea version (or commit ref): 1.13.0
  • Git version: 2.20.1
  • Operating system: Debian
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No

Description

I am running gitea on a Raspberry Pi 4 with Debian via a binary. Everything seems to work perfectly fine, however when viewing code in a repository, any sort of indentation seems to be broken. The first layer of indentation always appears as 1 space, and additional levels do not appear at all. When viewing the code in raw form however, all indents display properly.

I am having this issue with both tabs and spaces, as well as both mirrors and non-mirrors. I have also tried adding a .editorconfig in the repositories, however that did not work.

Screenshots

Code: https://i.imgur.com/xPq7Hg1.png
Raw code: https://i.imgur.com/m6SRYaz.png

@Mango0x45
Copy link
Author

Edit: I solved the issue, just had to turn off minifying HTML with cloudflare

@go-gitea go-gitea locked and limited conversation to collaborators Feb 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant