TitleIndentation error on cgit diff
AuthorRodrigo Arias Mallo
CreatedSun, 28 Sep 2025 14:44:28 +0200
State open

Indentation with tabs in cgit diff seems to be broken, elements don't get aligned as expected.

Here is one example for cgit which shows:

  render/form-display-none.html \
         render/github-infinite-loop.html \
      render/hackernews.html \
+       render/hr.html \
        render/img-aspect-ratio-absolute.html \
         render/img-aspect-ratio-div.html \
      render/img-aspect-ratio-mix-border.html \

Here is an inline reproducer:

@@ -18,6 +18,7 @@ TESTS = \
render/form-display-none.html \
render/github-infinite-loop.html \
render/hackernews.html \
+ render/hr.html \
render/img-aspect-ratio-absolute.html \
render/img-aspect-ratio-div.html \
render/img-aspect-ratio-mix-border.html \

It seems to be caused by the whole diff being in one line, as if I split the div elements into separate lines it works fine (but adds extra empty lines).

@@ -18,6 +18,7 @@ TESTS = \
render/form-display-none.html \
render/github-infinite-loop.html \
render/hackernews.html \
+ render/hr.html \
render/img-aspect-ratio-absolute.html \
render/img-aspect-ratio-div.html \
render/img-aspect-ratio-mix-border.html \