aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-06-01 18:28:50 +0200
committerTristan Gingold <tgingold@free.fr>2019-06-01 18:28:50 +0200
commit2318615ede87be1f27e8d776d5fc30b814d8e505 (patch)
tree1f4621217c2caa5489366718a89ec3485ba19673
parent2c98c1cfeb1cab4688520a76e9c99f25735c28b3 (diff)
downloadghdl-2318615ede87be1f27e8d776d5fc30b814d8e505.tar.gz
ghdl-2318615ede87be1f27e8d776d5fc30b814d8e505.tar.bz2
ghdl-2318615ede87be1f27e8d776d5fc30b814d8e505.zip
vhdl-prints: improve output for if/then, architecture.
-rw-r--r--src/vhdl/vhdl-prints.adb4
1 files changed, 4 insertions, 0 deletions
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);