From c83cfbe33c4c08b2244513ccf7e16683bd21c1e6 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 5 Jan 2014 11:50:49 +0100 Subject: [PATCH] edit: Trim unwanted trailing space from output 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 6fd8cac5..49ccb380 100644 --- a/src/lib/commands/edit.c +++ b/src/lib/commands/edit.c @@ -230,7 +230,7 @@ print_nat(struct natstr *np) pr("Country #: %2d\n", np->nat_cnum); pr("Name : %-20s\t", np->nat_cnam); - pr("Representative : %-20s\n", np->nat_pnam); + pr("Representative : %s\n", np->nat_pnam); pr("BTUs : %3d\t\t\t", np->nat_btu); pr("Reserves : %5d\n", np->nat_reserve); pr("Capital : %s\t\t", diff --git a/tests/actofgod/journal.log b/tests/actofgod/journal.log index 1e0a4e1f..8653225e 100644 --- a/tests/actofgod/journal.log +++ b/tests/actofgod/journal.log @@ -1741,7 +1741,7 @@ Play#0 input edit c 5 Play#0 command edit Play#0 output Play#0 1 Country #: 5 - Play#0 output Play#0 1 Name : 5 Representative : 5 + Play#0 output Play#0 1 Name : 5 Representative : 5 Play#0 output Play#0 1 BTUs : 0 Reserves : 0 Play#0 output Play#0 1 Capital : 0,0 Origin : 0,0 Play#0 output Play#0 1 Status : 0x5 Seconds Used : 0