From 2318615ede87be1f27e8d776d5fc30b814d8e505 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 1 Jun 2019 18:28:50 +0200 Subject: vhdl-prints: improve output for if/then, architecture. --- src/vhdl/vhdl-prints.adb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vhdl/vhdl-prints.adb b/src/vhdl/vhdl-prints.adb index 796ff11cc..96eec57de 100644 --- a/src/vhdl/vhdl-prints.adb +++ b/src/vhdl/vhdl-prints.adb @@ -2702,6 +2702,8 @@ package body Vhdl.Prints is Disp_Token (Ctxt, Tok_If); Clause := Stmt; Print (Ctxt, Get_Condition (Clause)); + Close_Hbox (Ctxt); + Start_Hbox (Ctxt); Disp_Token (Ctxt, Tok_Then); Close_Hbox (Ctxt); while Clause /= Null_Iir loop @@ -2716,6 +2718,8 @@ package body Vhdl.Prints is if Expr /= Null_Iir then Disp_Token (Ctxt, Tok_Elsif); Print (Ctxt, Expr); + Close_Hbox (Ctxt); + Start_Hbox (Ctxt); Disp_Token (Ctxt, Tok_Then); else Disp_Token (Ctxt, Tok_Else); -- cgit v1.2.3