mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 06:15:36 -04:00
Try to preserve the exact form of end-of-file whitespace
This commit is contained in:
parent
e5ce03b312
commit
72ba5b72cc
1 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ class RawNginxParser(object):
|
|||
Group(ZeroOrMore(Group(comment | assignment) | block) + space).leaveWhitespace() +
|
||||
right_bracket)
|
||||
|
||||
script = OneOrMore(Group(comment | assignment) ^ block) + stringEnd
|
||||
script = OneOrMore(Group(comment | assignment) ^ block) + space + stringEnd
|
||||
script.parseWithTabs()
|
||||
|
||||
def __init__(self, source):
|
||||
|
|
@ -103,7 +103,7 @@ class RawNginxDumper(object):
|
|||
|
||||
def __str__(self):
|
||||
"""Return the parsed block as a string."""
|
||||
return ''.join(self) + '\n'
|
||||
return ''.join(self)
|
||||
|
||||
|
||||
# Shortcut functions to respect Python's serialization interface
|
||||
|
|
|
|||
Loading…
Reference in a new issue