Skip to content

First indentation is shorter by one character #5596

Closed
@freemanix

Description

@freemanix

Gitea version: 1.6.0, 1.5.0

Description

The first level indentation in file preview is in fact by one character shorten than all other levels indentations. For example, if the tab size is 8, first indentation will be 7 characters, not 8. This breaks many source codes rendering.

In the built-in web editor, the indentation works as expected.

Screenshots

Gitea .go code on GitHub:

indent-github

Gitea .go code on Gitea itself:

indent-gitea

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtopic/uiChange the appearance of the Gitea UItype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions