Skip to content

Commit be008f4

Browse files
committed
feat: Fix end line calculation for preview text in file operation
1 parent c0a0a00 commit be008f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

prometheus/tools/file_operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def read_file_with_knowledge_graph_data(
7777
"preview": {
7878
"text": selected_text_with_line_numbers,
7979
"start_line": 1,
80-
"end_line": len(selected_text_with_line_numbers),
80+
"end_line": len(selected_text_with_line_numbers.splitlines()),
8181
},
8282
}
8383
]

0 commit comments

Comments
 (0)