From e0b99afa2778da49e2630716eb7b5a7720aef915 Mon Sep 17 00:00:00 2001 From: Ivan Bondarev Date: Sun, 20 Nov 2022 11:46:02 +0100 Subject: [PATCH] fix #2743 --- ParserTools/DocumentationConstructor.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ParserTools/DocumentationConstructor.cs b/ParserTools/DocumentationConstructor.cs index f5a83bb9e..675309334 100644 --- a/ParserTools/DocumentationConstructor.cs +++ b/ParserTools/DocumentationConstructor.cs @@ -59,12 +59,13 @@ namespace PascalABCCompiler if (dsc.tags.Count == 0) if (dsc.text != null) { - documentation.Add(node, dsc.text); + documentation.Add(node, dsc.text.Trim()); return; } foreach (documentation_comment_tag dt in dsc.tags) if (dt.name.ToLower() == "summary") - documentation.Add(node, dt.text); + if (dt.text != null) + documentation.Add(node, dt.text.Trim()); } }