r5143 - trunk/varnish-cache/lib/libvcl
phk at varnish-cache.org
phk at varnish-cache.org
Fri Aug 27 20:43:20 CEST 2010
Author: phk
Date: 2010-08-27 20:43:20 +0200 (Fri, 27 Aug 2010)
New Revision: 5143
Modified:
trunk/varnish-cache/lib/libvcl/generate.py
Log:
Fix a fence-post error in generate.py's code to include a file verbatim.
Modified: trunk/varnish-cache/lib/libvcl/generate.py
===================================================================
--- trunk/varnish-cache/lib/libvcl/generate.py 2010-08-27 10:31:55 UTC (rev 5142)
+++ trunk/varnish-cache/lib/libvcl/generate.py 2010-08-27 18:43:20 UTC (rev 5143)
@@ -522,7 +522,9 @@
if x > w - 3:
fo.write("\"\n")
x = 0
- fo.write("\");\n")
+ if x != 0:
+ fo.write("\"")
+ fo.write(";\n")
#######################################################################
More information about the varnish-commit
mailing list