aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-02-28 21:28:08 -0500
committerB. Watson <urchlay@slackware.uk>2025-02-28 21:28:08 -0500
commitfd2292b20eee9c36179c143e21861ac0d403cb36 (patch)
tree72eff19e9f98480dc20e19ba135b9e7eebf5e8d6
parent9730a28fa224048914a61c869d06a34ef1dc497e (diff)
downloadbw-atari8-tools-fd2292b20eee9c36179c143e21861ac0d403cb36.tar.gz
listamsb: print initial EOL before the listing, to match what AMSB does.
-rw-r--r--listamsb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/listamsb.c b/listamsb.c
index 77d9a88..590453f 100644
--- a/listamsb.c
+++ b/listamsb.c
@@ -599,6 +599,9 @@ int main(int argc, char **argv) {
exit(0); /* don't need finish() here, no parsing done */
}
+ /* AMSB always prints a blank line when it LISTs, so we do too. */
+ fputc(EOL, outfile);
+
while(next_line())
linecount++;