On gitlab.com, all render shell scripts (.bash, .sh) files are truncated and no more line numbers are provided.

Summary

All script bash or shell have a rendering bug on gitlab.com

The output show everything on only one line and truncated.

Steps to reproduce

Browse gitlab until you go to a bash or shell script. Watch the code...

Example Project

Goto https://gitlab.com/gitlab-org/gitlab/-/blob/master/bin/background_jobs?ref_type=heads

compare with the raw https://gitlab.com/gitlab-org/gitlab/-/raw/master/bin/background_jobs?ref_type=heads

What is the current bug behavior?

The output show everything on one only one line and code is truncated.

What is the expected correct behavior?

You have lines with number, and script is not truncated

Note : Issue on Chrome / Firefox and Brave (from linux). Probably not depends of the browser, because html source is already truncated too.

Edited by Xavier MANACH