[master] 771fc25a1 Make the output tab-space compliant

Poul-Henning Kamp phk at FreeBSD.org
Mon Aug 6 17:29:06 UTC 2018


commit 771fc25a18f9657d0a95d7be01895c313e28aa4d
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