diff options
| author | tgingold <tgingold@users.noreply.github.com> | 2021-06-20 16:58:55 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-20 16:58:55 +0200 | 
| commit | 37920daab7a1cdcdb7f6b54c2799d73b58634524 (patch) | |
| tree | 8b68056072cdd34e47efa55aa629143552a55ba8 /pyGHDL/cli/DOM.py | |
| parent | 603c44d06dd0b3f2f49af25045b46dd8aa72979a (diff) | |
| parent | 3f3cf203c02671ab4d181d8d74aac2c3cc2c7c5c (diff) | |
| download | ghdl-37920daab7a1cdcdb7f6b54c2799d73b58634524.tar.gz ghdl-37920daab7a1cdcdb7f6b54c2799d73b58634524.tar.bz2 ghdl-37920daab7a1cdcdb7f6b54c2799d73b58634524.zip | |
Merge pull request #1798 from Paebbels/paebbels/aggregates
Python-C/Ada Bindings - Updated decorator
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)) | 
