From 331633babf42faf92584576710c2fb4b896d2991 Mon Sep 17 00:00:00 2001 From: Vera Mitchell Date: Thu, 30 Oct 2025 17:09:37 -0600 Subject: [PATCH] trim whitespace in doxygen formatter assertion rdar://163704908 --- Tests/SwiftDocCTests/Semantics/DoxygenTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/SwiftDocCTests/Semantics/DoxygenTests.swift b/Tests/SwiftDocCTests/Semantics/DoxygenTests.swift index 100ad050b7..9832537c9e 100644 --- a/Tests/SwiftDocCTests/Semantics/DoxygenTests.swift +++ b/Tests/SwiftDocCTests/Semantics/DoxygenTests.swift @@ -96,7 +96,7 @@ class DoxygenTests: XCTestCase { let symbol = try XCTUnwrap(node.semantic as? Symbol) XCTAssertEqual(symbol.abstract?.format(), "This is an abstract.") - XCTAssertEqual(symbol.discussion?.content.map { $0.format() }, [ + XCTAssertEqual(symbol.discussion?.content.map { $0.format().trimmingCharacters(in: .whitespacesAndNewlines) }, [ #"\abstract This is description with abstract."#, #"\discussion This is a discussion linking to ``doc://unit-test/documentation/ModuleName/AnotherClass`` and ``doc://unit-test/documentation/ModuleName/AnotherClass/prop``."#, #"\note This is a note linking to ``doc://unit-test/documentation/ModuleName/Class3`` and ``Class3/prop2``."#