Skip to content

Commit 73075ea

Browse files
authored
Fix TextBlock words spacing in TextBlock sample (#2067)
## Motivation and Context - Fixes #2065 ## Screenshots (if appropriate): <img width="395" height="159" alt="image" src="https://github.com/user-attachments/assets/76caf049-8892-4ac5-b534-b3036708ec59" /> ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change)
1 parent 01db226 commit 73075ea

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

WinUIGallery/Samples/ControlPages/TextBlockPage.xaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,18 @@
7676
<Run FontFamily="Times New Roman" Foreground="DarkGray">Text in a TextBlock doesn't have to be a simple string.</Run>
7777
<LineBreak />
7878
<Span>
79-
Text can be<Bold>bold</Bold>
80-
,<Italic>italic</Italic>
81-
, or<Underline>underlined</Underline>
82-
.</Span></TextBlock>
79+
Text can be <Bold>bold</Bold>, <Italic>italic</Italic>, or <Underline>underlined</Underline>.
80+
</Span>
81+
</TextBlock>
8382
</controls:ControlExample.Example>
8483
<controls:ControlExample.Xaml>
8584
<x:String xml:space="preserve">
8685
&lt;TextBlock&gt;
87-
&lt;Run FontFamily="Times New Roman" Foreground="DarkGray"&gt;
88-
Text in a TextBlock doesn't have to be a simple string.&lt;/Run&gt;
89-
&lt;LineBreak/&gt;
90-
&lt;Span&gt;Text can be &lt;Bold&gt;bold&lt;/Bold&gt;,
91-
&lt;Italic&gt;italic&lt;/Italic&gt;, or &lt;Underline&gt;underlined&lt;/Underline&gt;. &lt;/Span&gt;
86+
&lt;Run FontFamily="Times New Roman" Foreground="DarkGray"&gt;Text in a TextBlock doesn't have to be a simple string.&lt;/Run&gt;
87+
&lt;LineBreak /&gt;
88+
&lt;Span&gt;
89+
Text can be &lt;Bold&gt;bold&lt;/Bold&gt;, &lt;Italic&gt;italic&lt;/Italic&gt;, or &lt;Underline&gt;underlined&lt;/Underline&gt;.
90+
&lt;/Span&gt;
9291
&lt;/TextBlock&gt;
9392
</x:String>
9493
</controls:ControlExample.Xaml>

0 commit comments

Comments
 (0)