From 6b41581f919fa10f7fbf8d1bac458df93373be9f Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 22 Aug 2023 07:45:06 -0700 Subject: [PATCH] added header_max, more whitespace --- aider/repomap.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aider/repomap.py b/aider/repomap.py index 4862670d3..39775a0b8 100644 --- a/aider/repomap.py +++ b/aider/repomap.py @@ -38,7 +38,9 @@ def to_tree(tags): if this_fname != cur_fname: if context: context.add_context() - output += cur_fname + ":\n" + if output: + output += "\n" + output += cur_fname + ":\n\n" output += context.format() context = None elif cur_fname: @@ -54,8 +56,8 @@ def to_tree(tags): last_line=False, margin=0, mark_lois=False, - header_pad=1, loi_pad=0, + header_max=3, ) cur_fname = this_fname