@@ -404,7 +404,7 @@ Between the C<%> and the format letter, you may specify several
404
404
additional attributes controlling the interpretation of the format. In
405
405
order, these are:
406
406
407
- = head3 format parameter index
407
+ B < format parameter index >
408
408
409
409
An explicit format parameter index, such as C < 2$ > . By default,
410
410
C < sprintf > will format the next unused argument in the list, but this
@@ -413,7 +413,7 @@ allows you to take the arguments out of order:
413
413
sprintf '%2$d %1$d', 12, 34; # "34 12"
414
414
sprintf '%3$d %d %1$d', 1, 2, 3; # "3 1 1"
415
415
416
- = head3 flags
416
+ B < flags >
417
417
418
418
One or more of:
419
419
@@ -455,7 +455,7 @@ precision is incremented if it's necessary for the leading "0":
455
455
sprintf '<%#.5o>', 012345; # "<012345>"
456
456
sprintf '<%#.0o>', 0; # "<>" # zero precision results in no output!
457
457
458
- = head3 vector flag
458
+ B < vector flag >
459
459
460
460
This flag tells Perl 6 to interpret the supplied string as a vector of
461
461
integers, one for each character in the string. Perl 6 applies the
@@ -472,7 +472,7 @@ join string using something like C<*2$v>; for example:
472
472
NYI sprintf '%*4$vX %*4$vX %*4$vX', # 3 IPv6 addresses
473
473
@addr[1..3], ":";
474
474
475
- = head3 (minimum) width
475
+ B < (minimum) width >
476
476
477
477
Arguments are usually formatted to be only as wide as required to
478
478
display the given value. You can override the width by putting a
@@ -488,7 +488,7 @@ from a specified argument (e.g., with C<*2$>):
488
488
If a field width obtained through C < * > is negative, it has the same
489
489
effect as the C < - > flag: left-justification.
490
490
491
- = head3 precision, or maximum width
491
+ B < precision, or maximum width >
492
492
493
493
You can specify a precision (for numeric conversions) or a maximum
494
494
width (for string conversions) by specifying a C < . > followed by a
@@ -561,7 +561,7 @@ no precision at all:
561
561
sprintf '<%.*d>', 0, 0; # "<>"
562
562
sprintf '<%.*d>', -1, 0; # "<0>"
563
563
564
- = head3 size
564
+ B < size >
565
565
566
566
For numeric conversions, you can specify the size to interpret the
567
567
number as using C < l > , C < h > , C < V > , C < q > , C < L > , or C < ll > . For integer
@@ -587,7 +587,7 @@ used to build Perl 6:
587
587
t interpret integer as C type "ptrdiff_t"
588
588
z interpret integer as C type "size_t"
589
589
590
- = head3 order of arguments
590
+ B < order of arguments >
591
591
592
592
Normally, C < sprintf > takes the next unused argument as the value to
593
593
format for each format specification. If the format specification uses
0 commit comments