]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
doc: Document placement of extracted comment blocks
authorDaiki Ueno <ueno@gnu.org>
Mon, 1 Dec 2014 07:45:57 +0000 (16:45 +0900)
committerDaiki Ueno <ueno@gnu.org>
Mon, 1 Dec 2014 07:46:18 +0000 (16:46 +0900)
* xgettext.texi: Mention that extracted comment blocks must be
adjacent to keyword lines.
Reported by Yves-Gwenael Bourhis at:
<https://savannah.gnu.org/bugs/index.php?42376>.

gettext-tools/doc/ChangeLog
gettext-tools/doc/xgettext.texi

index e96e8bf2a33c4d4402205080a6b02cc310724387..4bd99366c8cfaa8f62e96aff6684e5b40f1e66ac 100644 (file)
@@ -1,3 +1,11 @@
+2014-12-01  Daiki Ueno  <ueno@gnu.org>
+
+       doc: Document placement of extracted comment blocks
+       * xgettext.texi: Mention that extracted comment blocks must be
+       adjacent to keyword lines.
+       Reported by Yves-Gwenael Bourhis at:
+       <https://savannah.gnu.org/bugs/index.php?42376>.
+
 2014-10-15  Daiki Ueno  <ueno@gnu.org>
 
        * gettext 0.19.3 released.
index d187d6343b76de8c5dadc59d3f9b530e736cb28b..451e25fb6ec61278351d345127678c380352267c 100644 (file)
@@ -125,6 +125,25 @@ Place comment blocks starting with @var{tag} and preceding keyword lines
 in the output file.  Without a @var{tag}, the option means to put @emph{all}
 comment blocks preceding keyword lines in the output file.
 
+Note that comment blocks supposed to be extracted must be adjacent to
+keyword lines.  For example, in the following C source code:
+
+@example
+/* This is the first comment.  */
+gettext ("foo");
+
+/* This is the second comment: not extracted  */
+gettext (
+  "bar");
+
+gettext (
+  /* This is the third comment.  */
+  "baz");
+@end example
+
+The second comment line will not be extracted, because there is one
+blank line between the comment line and the keyword.
+
 @end table
 
 @subsection Language specific options