mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-26 01:06:27 +02:00
fix redundant new line
This commit is contained in:
parent
df2eff04de
commit
4d05bba39c
1 changed files with 1 additions and 1 deletions
|
|
@ -165,7 +165,7 @@ class Editor:
|
|||
# irrespective of the length difference between the original and new content.
|
||||
lines[start_line_index:end_line_index] = new_content_lines
|
||||
else:
|
||||
lines.insert(start_line_index, "\n".join(new_content_lines))
|
||||
lines.insert(start_line_index, "".join(new_content_lines))
|
||||
else:
|
||||
del lines[start_line_index:end_line_index]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue