[6.0] bbccfcd69 Make the output tab-space compliant

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Thu Aug 16 08:53:22 UTC 2018


commit bbccfcd69b600e7453618b6544f158d84fc79254
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Aug 6 17:27:52 2018 +0000

    Make the output tab-space compliant

diff --git a/bin/varnishtest/huffman_gen.py b/bin/varnishtest/huffman_gen.py
index 1486bd41d..00ff16fe6 100755
--- a/bin/varnishtest/huffman_gen.py
+++ b/bin/varnishtest/huffman_gen.py
@@ -85,7 +85,7 @@ for pfx in sorted(tbls.keys(), reverse=True):
 	for s in tbl:
 		for j in range(2 ** (msl - s.vall)):
 			print("	{} {{{}, {:3d}, {}}},".format(
-				" "*13 if j else "/* idx {:3d} */".format(s.val + j),
+				"\t     " if j else "/* idx {:3d} */".format(s.val + j),
 				s.vall, s.chr % 256,
 				s.esc if s.esc else "NULL"))
 	print('''}};


More information about the varnish-commit mailing list