Skip to content
Snippets Groups Projects
Commit 862eb8ab authored by Campbell Barton's avatar Campbell Barton
Browse files

remove extra space added by `#if 0` utility

parent 33d30316
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ if is_comment: ...@@ -24,7 +24,7 @@ if is_comment:
if pop_a is None: if pop_a is None:
if l_strip.startswith("#if 0"): if l_strip.startswith("#if 0"):
pop_a = i pop_a = i
if l_strip.startswith("#endif"): if l_strip.startswith("#endif"):
pop_b = i pop_b = i
...@@ -32,7 +32,7 @@ if is_comment: ...@@ -32,7 +32,7 @@ if is_comment:
del data[pop_b] del data[pop_b]
del data[pop_a] del data[pop_a]
else: else:
data = ["\n#if 0"] + data + ["#endif\n"] data = ["#if 0"] + data + ["#endif"]
print("\n".join(data), end="") print("\n".join(data), end="")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment