From 827e2e4cc05c2f27929c7c35dda2aa8918389ad1 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 2 Jun 2013 11:37:03 +0200 Subject: [PATCH] edit: Trim trailing tab in output print_plane() ends its output with '\t' instead of '\n'. Next is a prompt, which supplies the missing newline (see pr_id()). Ugly, clean up. Signed-off-by: Markus Armbruster --- src/lib/commands/edit.c | 2 +- tests/actofgod/journal.log | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/commands/edit.c b/src/lib/commands/edit.c index dacf508fc..894cd2c96 100644 --- a/src/lib/commands/edit.c +++ b/src/lib/commands/edit.c @@ -262,7 +262,7 @@ print_plane(struct plnstr *plane) pr("Range : %d\t\t", plane->pln_range); pr("Flags : %d\n", plane->pln_flags); pr("Ship : %d\t\t", plane->pln_ship); - pr("Land Unit : %d\t", plane->pln_land); + pr("Land Unit : %d\n", plane->pln_land); } static void diff --git a/tests/actofgod/journal.log b/tests/actofgod/journal.log index 15f848d8f..43a6a93a4 100644 --- a/tests/actofgod/journal.log +++ b/tests/actofgod/journal.log @@ -1382,7 +1382,7 @@ Play#0 output Play#0 1 Efficiency : 0 Mobility : 0 Play#0 output Play#0 1 Tech : 100 Wing : Play#0 output Play#0 1 Range : 9 Flags : 0 - Play#0 output Play#0 1 Ship : -1 Land Unit : -1 + Play#0 output Play#0 1 Ship : -1 Land Unit : -1 Play#0 output Play#0 4 %c xxxxx -- thing value : Play#0 input m 2 Play#0 output Play#0 1 Mobility of f1 Sopwith Camel #0 changed from 0 to 2 -- 2.43.0