diff options
author | Alex Henrie <alexhenrie24@gmail.com> | 2015-02-06 09:04:01 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2015-02-06 09:15:19 +0900 |
commit | abb2599a3a7980ce5b237ab26b20f238ad1e01c1 (patch) | |
tree | 1ffafd9c0f7cb0e0b6b84c012e848fd88b7c942e | |
parent | ea070a750206e6ffde1439afe7738ad4faed1bf4 (diff) | |
download | external_gettext-abb2599a3a7980ce5b237ab26b20f238ad1e01c1.zip external_gettext-abb2599a3a7980ce5b237ab26b20f238ad1e01c1.tar.gz external_gettext-abb2599a3a7980ce5b237ab26b20f238ad1e01c1.tar.bz2 |
tests: Improve comments in xgettext-13
-rwxr-xr-x | gettext-tools/tests/xgettext-13 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gettext-tools/tests/xgettext-13 b/gettext-tools/tests/xgettext-13 index c463dd9..dcd1004 100755 --- a/gettext-tools/tests/xgettext-13 +++ b/gettext-tools/tests/xgettext-13 @@ -2,7 +2,7 @@ . "${srcdir=.}/init.sh"; path_prepend_ . ../src # Test wrapping long lines. -# Both msgid and location comments should wrap to at most 79 characters. +# Both msgid and location comments should wrap at the same column. cat <<\EOF > xg-test13.c /* With --width=30, the following 10 gettext calls will produce: @@ -11,7 +11,7 @@ cat <<\EOF > xg-test13.c #: x:8 x:9 x:10 msgid "a" - because strlen("#:") + strlen(" x:N") * 7 = 30 */ + because strlen("#:") + strlen(" x:N") * 7 = 30. */ #line 1 "x" gettext ("a"); gettext ("a"); @@ -24,13 +24,13 @@ gettext ("a"); gettext ("a"); gettext ("a"); -/* The following gettext call will produce: +/* And the following gettext call will produce: msgid "" "x:1 x:2 x:3 x:4 x:5 x:6 x:7 " "x:8 x:9 x:10" - because strlen("\"") + strlen("x:N ") * 7 + strlen("\"") = 30 */ + because strlen("\"") + strlen("x:N ") * 7 + strlen("\"") = 30. */ gettext ("x:1 x:2 x:3 x:4 x:5 x:6 x:7 x:8 x:9 x:10"); EOF |