diff --git a/src/XamlStyler/DocumentProcessors/ElementDocumentProcessor.cs b/src/XamlStyler/DocumentProcessors/ElementDocumentProcessor.cs index 2cc32348..53c9f6af 100644 --- a/src/XamlStyler/DocumentProcessors/ElementDocumentProcessor.cs +++ b/src/XamlStyler/DocumentProcessors/ElementDocumentProcessor.cs @@ -25,7 +25,7 @@ internal class ElementDocumentProcessor : IDocumentProcessor private readonly XmlEscapingService xmlEscapingService; private readonly IList noNewLineElementsList; private readonly IList firstLineAttributes; - private readonly string[] inlineCollections = { "TextBlock", "RichTextBlock", "Paragraph", "Run", "Span", "InlineUIContainer", "AnchoredBlock" }; + private readonly string[] inlineCollections = { "Bold", "Italic", "Underline", "TextBlock", "RichTextBlock", "Paragraph", "Run", "Span", "InlineUIContainer", "AnchoredBlock" }; private readonly string[] inlineTypes = { "Paragraph", "Run", "Span", "InlineUIContainer", "AnchoredBlock", "Hyperlink", "Bold", "Italic", "Underline", "LineBreak" }; public ElementDocumentProcessor( @@ -378,4 +378,4 @@ private bool IsNoLineBreakElement(string elementName) return this.noNewLineElementsList.Contains(elementName); } } -} \ No newline at end of file +}