diff options
author | Bruno Haible <bruno@clisp.org> | 2006-11-27 12:49:05 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:14:24 +0200 |
commit | 4fa8d6f3a3f23a7b5757a6c9d17bcb9b039d8e7b (patch) | |
tree | d047a975a98d85e419f58288303a0a0c2d0c2c50 /gettext-tools/src/write-po.c | |
parent | 6b0bce05dbdee316047e57a6d29bf7a7e5a19453 (diff) | |
download | external_gettext-4fa8d6f3a3f23a7b5757a6c9d17bcb9b039d8e7b.zip external_gettext-4fa8d6f3a3f23a7b5757a6c9d17bcb9b039d8e7b.tar.gz external_gettext-4fa8d6f3a3f23a7b5757a6c9d17bcb9b039d8e7b.tar.bz2 |
Change make_format_description_string, make_c_width_description_string to
not emit a space.
Diffstat (limited to 'gettext-tools/src/write-po.c')
-rw-r--r-- | gettext-tools/src/write-po.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gettext-tools/src/write-po.c b/gettext-tools/src/write-po.c index 43cad65..801040a 100644 --- a/gettext-tools/src/write-po.c +++ b/gettext-tools/src/write-po.c @@ -74,16 +74,16 @@ make_format_description_string (enum is_format is_format, const char *lang, case possible: if (debug) { - sprintf (result, " possible-%s-format", lang); + sprintf (result, "possible-%s-format", lang); break; } /* FALLTHROUGH */ case yes_according_to_context: case yes: - sprintf (result, " %s-format", lang); + sprintf (result, "%s-format", lang); break; case no: - sprintf (result, " no-%s-format", lang); + sprintf (result, "no-%s-format", lang); break; default: /* The others have already been filtered out by significant_format_p. */ @@ -127,10 +127,10 @@ make_c_width_description_string (enum is_wrap do_wrap) switch (do_wrap) { case yes: - result = " wrap"; + result = "wrap"; break; case no: - result = " no-wrap"; + result = "no-wrap"; break; default: abort (); @@ -299,6 +299,7 @@ message_print_comment_flags (const message_ty *mp, ostream_t stream, bool debug) if (!first_flag) ostream_write_str (stream, ","); + ostream_write_str (stream, " "); ostream_write_str (stream, make_format_description_string (mp->is_format[i], format_language[i], @@ -311,6 +312,7 @@ message_print_comment_flags (const message_ty *mp, ostream_t stream, bool debug) if (!first_flag) ostream_write_str (stream, ","); + ostream_write_str (stream, " "); ostream_write_str (stream, make_c_width_description_string (mp->do_wrap)); first_flag = false; |