Skip to content

Commit 209b7cd

Browse files
authored
add hard newlines to fix formatting in string.format (#5084)
1 parent 1e01c0a commit 209b7cd

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

xml/System/String.xml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5301,14 +5301,14 @@ Invalid sequences are represented in the enumeration by <xref:System.Text.Rune.R
53015301

53025302
In this section:
53035303

5304-
[Get started with the String.Format method](#Starting)
5305-
[Which method do I call?](#FTaskList)
5306-
[The Format method in brief](#Format_Brief)
5307-
[The Format item](#FormatItem)
5308-
[How arguments are formatted](#HowFormatted)
5309-
[Format items that have the same index](#SameIndex)
5310-
[Formatting and culture](#Format_Culture)
5311-
[Custom formatting operations](#Format_Custom)
5304+
[Get started with the String.Format method](#Starting)\
5305+
[Which method do I call?](#FTaskList)\
5306+
[The Format method in brief](#Format_Brief)\
5307+
[The Format item](#FormatItem)\
5308+
[How arguments are formatted](#HowFormatted)\
5309+
[Format items that have the same index](#SameIndex)\
5310+
[Formatting and culture](#Format_Culture)\
5311+
[Custom formatting operations](#Format_Custom)\
53125312
[String.Format Q & A](#QA)
53135313

53145314
<a name="Starting"></a>
@@ -5410,15 +5410,15 @@ Invalid sequences are represented in the enumeration by <xref:System.Text.Rune.R
54105410

54115411
A format item has the following elements:
54125412

5413-
*index*
5413+
*index*\
54145414
The zero-based index of the argument whose string representation is to be included at this position in the string. If this argument is `null`, an empty string will be included at this position in the string.
54155415

5416-
*alignment*
5416+
*alignment*\
54175417
Optional. A signed integer that indicates the total length of the field into which the argument is inserted and whether it is right-aligned (a positive integer) or left-aligned (a negative integer). If you omit *alignment*, the string representation of the corresponding argument is inserted in a field with no leading or trailing spaces.
54185418

54195419
If the value of *alignment* is less than the length of the argument to be inserted, *alignment* is ignored and the length of the string representation of the argument is used as the field width.
54205420

5421-
*formatString*
5421+
*formatString*\
54225422
Optional. A string that specifies the format of the corresponding argument's result string. If you omit *formatString*, the corresponding argument's parameterless `ToString` method is called to produce its string representation. If you specify *formatString*, the argument referenced by the format item must implement the <xref:System.IFormattable> interface. Types that support format strings include:
54235423

54245424
- All integral and floating-point types. (See [Standard Numeric Format Strings](/dotnet/standard/base-types/standard-numeric-format-strings) and [Custom Numeric Format Strings](/dotnet/standard/base-types/custom-numeric-format-strings).)
@@ -5610,17 +5610,17 @@ The following are some of the examples included in the article:
56105610

56115611
### Create a format string
56125612

5613-
[Inserting a string](#insert-a-string)
5614-
[The format item](#the-format-item)
5613+
[Inserting a string](#insert-a-string)\
5614+
[The format item](#the-format-item)\
56155615
[Format items that have the same index](#format-items-that-have-the-same-index)
56165616

56175617
### Control formatted output
56185618

5619-
[Controlling formatting](#control-formatting)
5620-
[Controlling spacing](#control-spacing)
5621-
[Controlling alignment](#control-alignment)
5622-
[Controlling the number of integral digits](#how-do-i-control-the-number-of-integral-digits)
5623-
[Controlling the number of digits after the decimal separator](#how-do-i-control-the-number-of-digits-after-the-decimal-separator)
5619+
[Controlling formatting](#control-formatting)\
5620+
[Controlling spacing](#control-spacing)\
5621+
[Controlling alignment](#control-alignment)\
5622+
[Controlling the number of integral digits](#how-do-i-control-the-number-of-integral-digits)\
5623+
[Controlling the number of digits after the decimal separator](#how-do-i-control-the-number-of-digits-after-the-decimal-separator)\
56245624
[Including literal braces in a result string](#braces)
56255625

56265626
### Make format strings culture-sensitive
@@ -5629,7 +5629,7 @@ The following are some of the examples included in the article:
56295629

56305630
### Customize the formatting operation
56315631

5632-
[A custom formatting operation](#example-a-custom-formatting-operation)
5632+
[A custom formatting operation](#example-a-custom-formatting-operation)\
56335633
[An intercept provider and Roman numeral formatter](#example-an-intercept-provider-and-roman-numeral-formatter)
56345634

56355635
]]></format>

0 commit comments

Comments
 (0)