diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-19 02:22:36 +0200 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-19 15:25:07 +0200 |
commit | d9a096facfde93a78f1ce7546bb4f34f4e3cbde1 (patch) | |
tree | 6a597ea2b7196fdff3b70a48dbaa4383ed261ccc /pyGHDL/cli/DOM.py | |
parent | 5764b4a86c3389ed0388c9382a112640a04dc0b0 (diff) | |
download | ghdl-d9a096facfde93a78f1ce7546bb4f34f4e3cbde1.tar.gz ghdl-d9a096facfde93a78f1ce7546bb4f34f4e3cbde1.tar.bz2 ghdl-d9a096facfde93a78f1ce7546bb4f34f4e3cbde1.zip |
Improvements to pyGHDL.dom.
Diffstat (limited to 'pyGHDL/cli/DOM.py')
-rwxr-xr-x | pyGHDL/cli/DOM.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pyGHDL/cli/DOM.py b/pyGHDL/cli/DOM.py index 6bd6c8a7e..d7ffc7319 100755 --- a/pyGHDL/cli/DOM.py +++ b/pyGHDL/cli/DOM.py @@ -28,13 +28,13 @@ class Application: self._design.Documents.append(document) def prettyPrint(self): - buffer = [] - PP = PrettyPrint() - for doc in self._design.Documents: - for line in PP.formatDocument(doc): - buffer.append(line) + buffer = [] + + buffer.append("Design:") + for line in PP.formatDesign(self._design, 1): + buffer.append(line) print("\n".join(buffer)) |