ep: Missing newlines in teacher prompt (#47143)

Release Notes:

- N/A
This commit is contained in:
Oleksiy Syvokon authored and GitHub committed 2026-01-19 14:45:30 +00:00
1 parent fa1ee98e27
commit 25264b2cc3
1 file changed
+2 -1
@@ -251,6 +251,7 @@ impl TeacherPrompt {
for file in related_files {
let path_str = file.path.to_string_lossy();
writeln!(&mut prompt, "`````{path_str}").ok();
let mut prev_row = 0;
for excerpt in &file.excerpts {
if excerpt.row_range.start > prev_row {
@@ -263,7 +264,7 @@ impl TeacherPrompt {
if prev_row < file.max_row {
prompt.push_str("…\n");
}
prompt.push_str("\n`````");
prompt.push_str("\n`````\n");
}
prompt