Avoid CONSTRAINT_ERROR

Fixes #99
This commit is contained in:
Maxim Reznik
2024-11-12 13:34:16 +02:00
parent 3b9ae04ea8
commit c062d877c4

View File

@@ -2528,8 +2528,8 @@ package body GNATdoc.Comments.Extractor is
Raw_Section := Trailing_Section;
elsif Options.Fallback
and Leading_Section /= null
and not Leading_Section.Text.Is_Empty
and then Leading_Section /= null
and then not Leading_Section.Text.Is_Empty
then
Raw_Section := Leading_Section;
end if;