fix: remove newline in auto insert subs
This commit is contained in:
@@ -160,7 +160,7 @@ class ServiceCreator:
|
||||
if re.search(pattern, file_content, re.MULTILINE):
|
||||
# Insert our new row right before that closing brace line
|
||||
updated_content = re.sub(
|
||||
pattern, f"\n{new_row}\n\\1", file_content, count=1, flags=re.MULTILINE
|
||||
pattern, f"\n{new_row}\\1", file_content, count=1, flags=re.MULTILINE
|
||||
)
|
||||
with open(MASTER_IOC_SUBS_FILE, "w") as f:
|
||||
f.write(updated_content)
|
||||
|
||||
Reference in New Issue
Block a user