From d13c5e34fbf364f9f44c29f7d293a7cf90cf2ef1 Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Tue, 20 Jun 2023 15:46:29 +0100 Subject: [PATCH] Put empty line above memory comment before memory for -p*/s --- src/developer_opts.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/developer_opts.c b/src/developer_opts.c index 2c60b320..f2bf8999 100644 --- a/src/developer_opts.c +++ b/src/developer_opts.c @@ -361,9 +361,11 @@ void dev_print_comment(const LISTID comms) { static void dev_cout(const LISTID comms, const char *name, int rhs, int elself) { COMMENT *cp; + if(elself == 2) + dev_info("\n"); if((cp = locate_comment(comms, name, rhs))) dev_print_comment(cp->comms); - else if(elself) + else if(elself == 1) dev_info("\n"); } @@ -819,7 +821,7 @@ static void dev_part_strct(const AVRPART *p, bool tsv, const AVRPART *base, bool continue; } - dev_cout(m->comments, "*", 0, 1); + dev_cout(m->comments, "*", 0, 2); dev_info(" memory \"%s\"\n", m->desc); }