Skip to content

Code indents not displaying properly #14062

@Mango0x45

Description

@Mango0x45
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions