aboutsummaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-03-21 05:36:33 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-03-21 05:36:33 +0200
commit3e92d06bebd53eba773749351641e3eaed7c117f (patch)
tree73a25fc10c399656589daa3ab7f0f81c483139b7 /profile.c
parentdd0cfe0cb3138755733c6578366cebc239e7017d (diff)
downloadegawk-3e92d06bebd53eba773749351641e3eaed7c117f.tar.gz
egawk-3e92d06bebd53eba773749351641e3eaed7c117f.tar.bz2
egawk-3e92d06bebd53eba773749351641e3eaed7c117f.zip
Improve pretty-printing comment after if statement.
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/profile.c b/profile.c
index b6797192..3eca03bd 100644
--- a/profile.c
+++ b/profile.c
@@ -932,7 +932,8 @@ cleanup:
if (pc->nexti->opcode == Op_no_op) { /* no following else */
indent(SPACEOVER);
fprintf(prof_fp, "}");
- if (pc->nexti->nexti->opcode != Op_comment)
+ if (pc->nexti->nexti->opcode != Op_comment
+ || pc->nexti->nexti->memory->comment_type == FULL_COMMENT)
fprintf(prof_fp, "\n");
/* else
It will be printed at the top. */