Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add "Flags" title in format parameter of sprintf #4551

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 53 additions & 51 deletions language-snippets.ent
Original file line number Diff line number Diff line change
Expand Up @@ -3957,57 +3957,59 @@ local: {
</para>
</formalpara>

<para>
<table>
<title>Flags</title>
<tgroup cols="2">
<thead>
<row>
<entry>Flag</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry><literal>-</literal></entry>
<entry>
Left-justify within the given field width;
Right justification is the default
</entry>
</row>
<row>
<entry><literal>+</literal></entry>
<entry>
Prefix positive numbers with a plus sign
<literal>+</literal>; Default only negative
are prefixed with a negative sign.
</entry>
</row>
<row>
<entry><literal> </literal>(space)</entry>
<entry>
Pads the result with spaces.
This is the default.
</entry>
</row>
<row>
<entry><literal>0</literal></entry>
<entry>
Only left-pads numbers with zeros.
With <literal>s</literal> specifiers this can
also right-pad with zeros.
</entry>
</row>
<row>
<entry><literal>&apos;</literal>(char)</entry>
<entry>
Pads the result with the character (char).
</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
<formalpara>
<title>Flags</title>
<para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need this wrapping para tag

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran your suggestions locally. The <para> container is still needed, but <table> can safely be changed to <informaltable>.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>Flag</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry><literal>-</literal></entry>
<entry>
Left-justify within the given field width;
Right justification is the default
</entry>
</row>
<row>
<entry><literal>+</literal></entry>
<entry>
Prefix positive numbers with a plus sign
<literal>+</literal>; Default only negative
are prefixed with a negative sign.
</entry>
</row>
<row>
<entry><literal> </literal>(space)</entry>
<entry>
Pads the result with spaces.
This is the default.
</entry>
</row>
<row>
<entry><literal>0</literal></entry>
<entry>
Only left-pads numbers with zeros.
With <literal>s</literal> specifiers this can
also right-pad with zeros.
</entry>
</row>
<row>
<entry><literal>&apos;</literal>(char)</entry>
<entry>
Pads the result with the character (char).
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</formalpara>

<formalpara>
<title>Width</title>
Expand Down