Skip to content

Commit 89eab8a

Browse files
committed
Fix table alignment and remove trailing whitespaces
1 parent 133d788 commit 89eab8a

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/input/docs/reference/custom-formatting.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ GitVersion introduces custom format specifiers for string case transformations t
5555

5656
### Available Case Formats
5757

58-
| Format | Description | Example Input | Example Output |
59-
|--------|-------------|---------------|----------------|
60-
| `u` | **Uppercase** - Converts entire string to uppercase | `feature-branch` | `FEATURE-BRANCH` |
61-
| `l` | **Lowercase** - Converts entire string to lowercase | `Feature-Branch` | `feature-branch` |
62-
| `t` | **Title Case** - Capitalizes first letter of each word | `feature-branch` | `Feature-Branch` |
63-
| `s` | **Sentence Case** - Capitalizes only the first letter | `feature-branch` | `Feature-branch` |
64-
| `c` | **PascalCase** - Removes separators and capitalizes each word | `feature-branch` | `FeatureBranch` |
58+
| Format | Description | Example Input | Example Output |
59+
|--------|---------------------------------------------------------------|------------------|------------------|
60+
| `u` | **Uppercase** - Converts entire string to uppercase | `feature-branch` | `FEATURE-BRANCH` |
61+
| `l` | **Lowercase** - Converts entire string to lowercase | `Feature-Branch` | `feature-branch` |
62+
| `t` | **Title Case** - Capitalizes first letter of each word | `feature-branch` | `Feature-Branch` |
63+
| `s` | **Sentence Case** - Capitalizes only the first letter | `feature-branch` | `Feature-branch` |
64+
| `c` | **PascalCase** - Removes separators and capitalizes each word | `feature-branch` | `FeatureBranch` |
6565

6666
### Usage Examples
6767

@@ -70,7 +70,7 @@ GitVersion introduces custom format specifiers for string case transformations t
7070
branches:
7171
feature:
7272
label: "{BranchName:c}" # Converts to PascalCase
73-
73+
7474
template: "{Major}.{Minor}.{Patch}-{PreReleaseLabel:l}.{CommitsSinceVersionSource:0000}"
7575
```
7676

@@ -191,7 +191,7 @@ The formatting system uses `CultureInfo.InvariantCulture` by default through the
191191
```csharp
192192
// All environments produce the same output:
193193
// {CommitsSinceVersionSource:N0} → "1,234"
194-
// {CommitDate:MMM dd, yyyy} → "Mar 15, 2024"
194+
// {CommitDate:MMM dd, yyyy} → "Mar 15, 2024"
195195
// {Major:C} → "¤1.00" (generic currency symbol)
196196
```
197197

@@ -207,16 +207,16 @@ The following examples are verified by actual unit tests in the GitVersion codeb
207207
assembly-informational-format: "{Major}.{Minor}.{Patch}-{CommitsSinceVersionSource:0000}"
208208
```
209209

210-
**Test**: `VariableProviderTests.Format_Allows_CSharp_FormatStrings()`
211-
**Input**: `CommitsSinceVersionSource = 42`
210+
**Test**: `VariableProviderTests.Format_Allows_CSharp_FormatStrings()`
211+
**Input**: `CommitsSinceVersionSource = 42`
212212
**Output**: `"1.2.3-0042"`
213213

214214
### String Case Transformations
215215

216216
```csharp
217217
// From StringFormatterTests.cs
218218
[TestCase("hello world", "c", "HelloWorld")] // PascalCase
219-
[TestCase("hello", "u", "HELLO")] // Uppercase
219+
[TestCase("hello", "u", "HELLO")] // Uppercase
220220
[TestCase("HELLO", "l", "hello")] // Lowercase
221221
[TestCase("hello world", "t", "Hello World")] // Title Case
222222
[TestCase("hELLO", "s", "Hello")] // Sentence Case
@@ -225,7 +225,7 @@ assembly-informational-format: "{Major}.{Minor}.{Patch}-{CommitsSinceVersionSour
225225
### Numeric Format Specifiers
226226

227227
```csharp
228-
// From NumericFormatterTests.cs
228+
// From NumericFormatterTests.cs
229229
[TestCase("1234.5678", "n", "1,234.57")] // Number format
230230
[TestCase("1234.5678", "f2", "1234.57")] // Fixed-point format
231231
[TestCase("1234.5678", "f0", "1235")] // No decimals
@@ -249,4 +249,4 @@ assembly-informational-format: "{Major}.{Minor}.{Patch}-{CommitsSinceVersionSour
249249
```
250250

251251
[reference-configuration]: /docs/reference/configuration
252-
[variables]: /docs/reference/variables
252+
[variables]: /docs/reference/variables

0 commit comments

Comments
 (0)