git3html

git clone https://orangeshoelaces.net/git/git3html.git

9abf03307e1a5e752bcb186f22062ec57cf722df

Author: Vasilii Kolobkov on 01/15/2019

Committer: Vasilii Kolobkov on 01/15/2019

Expand tabs when displaying text files

Stats

git3html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/git3html b/git3html
index b94f1f0..2d510b1 100755
--- a/git3html
+++ b/git3html
@@ -277,7 +277,7 @@ textfile() (
 	printf '<h2>%s</h2>\n' "$(echo "$reppath" | escape)"
 	printf '<pre><code>'
 	n=0
-	g cat-file blob "$blob" | escape | awk -F '' '{
+	g cat-file blob "$blob" | expand | escape | awk -F '' '{
 		++n
 		printf "<a href=\"#l%d\" class=\"linea\">%4d</a> %s\n", n, n, $0
 	}'