Skip to content

Commit 7992fcd

Browse files
committed
add "Flags" title in format parameter of sprintf
1 parent 5d7f95f commit 7992fcd

File tree

1 file changed

+53
-51
lines changed

1 file changed

+53
-51
lines changed

Diff for: language-snippets.ent

+53-51
Original file line numberDiff line numberDiff line change
@@ -3957,57 +3957,59 @@ local: {
39573957
</para>
39583958
</formalpara>
39593959

3960-
<para>
3961-
<table>
3962-
<title>Flags</title>
3963-
<tgroup cols="2">
3964-
<thead>
3965-
<row>
3966-
<entry>Flag</entry>
3967-
<entry>&Description;</entry>
3968-
</row>
3969-
</thead>
3970-
<tbody>
3971-
<row>
3972-
<entry><literal>-</literal></entry>
3973-
<entry>
3974-
Left-justify within the given field width;
3975-
Right justification is the default
3976-
</entry>
3977-
</row>
3978-
<row>
3979-
<entry><literal>+</literal></entry>
3980-
<entry>
3981-
Prefix positive numbers with a plus sign
3982-
<literal>+</literal>; Default only negative
3983-
are prefixed with a negative sign.
3984-
</entry>
3985-
</row>
3986-
<row>
3987-
<entry><literal> </literal>(space)</entry>
3988-
<entry>
3989-
Pads the result with spaces.
3990-
This is the default.
3991-
</entry>
3992-
</row>
3993-
<row>
3994-
<entry><literal>0</literal></entry>
3995-
<entry>
3996-
Only left-pads numbers with zeros.
3997-
With <literal>s</literal> specifiers this can
3998-
also right-pad with zeros.
3999-
</entry>
4000-
</row>
4001-
<row>
4002-
<entry><literal>&apos;</literal>(char)</entry>
4003-
<entry>
4004-
Pads the result with the character (char).
4005-
</entry>
4006-
</row>
4007-
</tbody>
4008-
</tgroup>
4009-
</table>
4010-
</para>
3960+
<formalpara>
3961+
<title>Flags</title>
3962+
<para>
3963+
<informaltable>
3964+
<tgroup cols="2">
3965+
<thead>
3966+
<row>
3967+
<entry>Flag</entry>
3968+
<entry>&Description;</entry>
3969+
</row>
3970+
</thead>
3971+
<tbody>
3972+
<row>
3973+
<entry><literal>-</literal></entry>
3974+
<entry>
3975+
Left-justify within the given field width;
3976+
Right justification is the default
3977+
</entry>
3978+
</row>
3979+
<row>
3980+
<entry><literal>+</literal></entry>
3981+
<entry>
3982+
Prefix positive numbers with a plus sign
3983+
<literal>+</literal>; Default only negative
3984+
are prefixed with a negative sign.
3985+
</entry>
3986+
</row>
3987+
<row>
3988+
<entry><literal> </literal>(space)</entry>
3989+
<entry>
3990+
Pads the result with spaces.
3991+
This is the default.
3992+
</entry>
3993+
</row>
3994+
<row>
3995+
<entry><literal>0</literal></entry>
3996+
<entry>
3997+
Only left-pads numbers with zeros.
3998+
With <literal>s</literal> specifiers this can
3999+
also right-pad with zeros.
4000+
</entry>
4001+
</row>
4002+
<row>
4003+
<entry><literal>&apos;</literal>(char)</entry>
4004+
<entry>
4005+
Pads the result with the character (char).
4006+
</entry>
4007+
</row>
4008+
</tbody>
4009+
</tgroup>
4010+
</informaltable>
4011+
</para>
4012+
</formalpara>
40114013

40124014
<formalpara>
40134015
<title>Width</title>

0 commit comments

Comments
 (0)