From 636bc29aa612cfcc5eea1a830f6a69e017a8ec26 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Wed, 12 May 2021 21:08:05 +0200 Subject: [PATCH] Fix --- .../AbstractDocumentationCommentFormattingService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Features/Core/Portable/DocumentationComments/AbstractDocumentationCommentFormattingService.cs b/src/Features/Core/Portable/DocumentationComments/AbstractDocumentationCommentFormattingService.cs index a4a6f6f1b1fb3..d3622f8f951fb 100644 --- a/src/Features/Core/Portable/DocumentationComments/AbstractDocumentationCommentFormattingService.cs +++ b/src/Features/Core/Portable/DocumentationComments/AbstractDocumentationCommentFormattingService.cs @@ -363,12 +363,12 @@ private static void AppendTextFromNode(FormatterState state, XNode node, Compila else if (name is DocumentationCommentXmlNames.CElementName or "tt") { needPopStyle = true; - state.PushStyle(TaggedTextStyle.Code | TaggedTextStyle.PreserveWhitespace); + state.PushStyle(TaggedTextStyle.Code); } else if (name == DocumentationCommentXmlNames.CodeElementName) { needPopStyle = true; - state.PushStyle(TaggedTextStyle.Code); + state.PushStyle(TaggedTextStyle.Code | TaggedTextStyle.PreserveWhitespace); } else if (name == "em" || name == "i") {