From 861dc87d7513f920365f0cf52be7406ca06711cf Mon Sep 17 00:00:00 2001 From: Piotr Trojanek Date: Mon, 6 Sep 2021 13:30:43 +0200 Subject: [PATCH] [Ada] Fix indentation in generated AST construction functions gcc/ada/ * gen_il-gen.adb (Put_Make_Spec): Don't emit the LF character in the middle of a string, because the Put routine won't indent it properly. --- gcc/ada/gen_il-gen.adb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/ada/gen_il-gen.adb b/gcc/ada/gen_il-gen.adb index 9983e1052db4..e786251fb308 100644 --- a/gcc/ada/gen_il-gen.adb +++ b/gcc/ada/gen_il-gen.adb @@ -2423,7 +2423,8 @@ package body Gen_IL.Gen is end if; end loop; - Put (S, ")" & LF & "return " & Node_Or_Entity (Root) & "_Id"); + Put (S, ")" & LF); + Put (S, "return " & Node_Or_Entity (Root) & "_Id"); Decrease_Indent (S, 2); Decrease_Indent (S, 1); end Put_Make_Spec; -- 2.47.2