We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a9f1cb commit ff5a0aaCopy full SHA for ff5a0aa
nginx.py
@@ -382,7 +382,7 @@ def as_strings(self):
382
"""Return key as nginx config string."""
383
if self.value == '' or self.value is None:
384
return '{0};\n'.format(self.name)
385
- if '"' not in self.value and (';' in self.value or '#' in self.value and '"' not in self.value):
+ if '"' not in self.value and (';' in self.value or '#' in self.value):
386
return '{0} "{1}";\n'.format(self.name, self.value)
387
return '{0} {1};\n'.format(self.name, self.value)
388
0 commit comments