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 <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2013-06-02 11:37:03 +02:00
parent fbaaed0322
commit 827e2e4cc0
2 changed files with 2 additions and 2 deletions

View file

@ -262,7 +262,7 @@ print_plane(struct plnstr *plane)
pr("Range <r>: %d\t\t", plane->pln_range); pr("Range <r>: %d\t\t", plane->pln_range);
pr("Flags <f>: %d\n", plane->pln_flags); pr("Flags <f>: %d\n", plane->pln_flags);
pr("Ship <s>: %d\t\t", plane->pln_ship); pr("Ship <s>: %d\t\t", plane->pln_ship);
pr("Land Unit <y>: %d\t", plane->pln_land); pr("Land Unit <y>: %d\n", plane->pln_land);
} }
static void static void

View file

@ -1382,7 +1382,7 @@
Play#0 output Play#0 1 Efficiency <e>: 0 Mobility <m>: 0 Play#0 output Play#0 1 Efficiency <e>: 0 Mobility <m>: 0
Play#0 output Play#0 1 Tech <t>: 100 Wing <w>: Play#0 output Play#0 1 Tech <t>: 100 Wing <w>:
Play#0 output Play#0 1 Range <r>: 9 Flags <f>: 0 Play#0 output Play#0 1 Range <r>: 9 Flags <f>: 0
Play#0 output Play#0 1 Ship <s>: -1 Land Unit <y>: -1 Play#0 output Play#0 1 Ship <s>: -1 Land Unit <y>: -1
Play#0 output Play#0 4 %c xxxxx -- thing value : Play#0 output Play#0 4 %c xxxxx -- thing value :
Play#0 input m 2 Play#0 input m 2
Play#0 output Play#0 1 Mobility of f1 Sopwith Camel #0 changed from 0 to 2 Play#0 output Play#0 1 Mobility of f1 Sopwith Camel #0 changed from 0 to 2