Reverted r65252 #caf1ee88ad: IDE: Add '.' to tooltip help if missing. Issue #39004, patch by CudaText man.

This caused a regression (bug #39011), and descriptions themselves had been corrected instead in order to have correct punctuation in all help output formats (CHM, HTML etc.)

git-svn-id: trunk@65276 -
This commit is contained in:
maxim 2021-06-18 20:39:19 +00:00
parent 57339c6efd
commit 91e1a5a741

View File

@ -2939,14 +2939,7 @@ function TCodeHelpManager.GetFPDocNodeAsHTML(FPDocFile: TLazFPDocFile;
if Node.NodeName='errors' then
Result:=Result+'<div class="title">'+'Errors'+'</div>'
else if Node.NodeName='seealso' then
Result:=Result+'<div class="title">'+'See also'+'</div>'
else if Node.NodeName='short' then
begin
//fix Mantis issue #39004
s:=Trim(s);
if (s<>'') and (s[Length(s)]<>'.') then
s:=s+'.';
end;
Result:=Result+'<div class="title">'+'See also'+'</div>';
Result:=Result+'<div class="'+Node.NodeName+'">'+s+'</div>'+LineEnding;
end else
if (Node.NodeName='p')