diff options
author | Bruno Haible <bruno@clisp.org> | 2003-11-25 11:07:27 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:11:21 +0200 |
commit | e69bdd7e5b115d0c5ec8de42fe0e248e14bbfb2e (patch) | |
tree | e1befe12d3dfb8ac83760ad949e228670a8ae7a9 /gettext-tools/src/x-java.c | |
parent | 569845286dbb89f52ca0c0034ea43139f57ca3d8 (diff) | |
download | external_gettext-e69bdd7e5b115d0c5ec8de42fe0e248e14bbfb2e.zip external_gettext-e69bdd7e5b115d0c5ec8de42fe0e248e14bbfb2e.tar.gz external_gettext-e69bdd7e5b115d0c5ec8de42fe0e248e14bbfb2e.tar.bz2 |
Fix the extraction of tagged comments.
Diffstat (limited to 'gettext-tools/src/x-java.c')
-rw-r--r-- | gettext-tools/src/x-java.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gettext-tools/src/x-java.c b/gettext-tools/src/x-java.c index eb38a84..04a61c3 100644 --- a/gettext-tools/src/x-java.c +++ b/gettext-tools/src/x-java.c @@ -766,7 +766,9 @@ phase4_getc () c = phase3_getc (); if (RED (c) == '\n' || c == P2_EOF) break; - comment_add (c); + /* We skip all leading white space, but not EOLs. */ + if (!(comment_at_start () && (RED (c) == ' ' || RED (c) == '\t'))) + comment_add (c); } phase3_ungetc (c); /* push back the newline, to decrement line_number */ comment_line_end (0); |