aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/formatting
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2022-12-26 23:17:22 +0100
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2022-12-26 23:19:29 +0100
commite38cf3c90f874db468b9943073b17635a1479e2f (patch)
tree01bb06c7bbef854314aeac28abb3e335d582a93c /pyGHDL/dom/formatting
parente2df91595f8647a81d53f164bf2f470fbbeb64dd (diff)
downloadghdl-e38cf3c90f874db468b9943073b17635a1479e2f.tar.gz
ghdl-e38cf3c90f874db468b9943073b17635a1479e2f.tar.bz2
ghdl-e38cf3c90f874db468b9943073b17635a1479e2f.zip
Formatting by black.
Diffstat (limited to 'pyGHDL/dom/formatting')
-rw-r--r--pyGHDL/dom/formatting/prettyprint.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/pyGHDL/dom/formatting/prettyprint.py b/pyGHDL/dom/formatting/prettyprint.py
index 29751b507..8510a91bd 100644
--- a/pyGHDL/dom/formatting/prettyprint.py
+++ b/pyGHDL/dom/formatting/prettyprint.py
@@ -114,7 +114,7 @@ class PrettyPrint:
# def __init__(self):
# self._buffer = []
- def CleanupDocumentationBlocks(self, documentationContent: str, level: int = 0):
+ def CleanupDocumentationBlocks(self, documentationContent: str, level: int = 0):
prefix = " " * level
if documentationContent is None:
return prefix
@@ -303,10 +303,7 @@ class PrettyPrint:
buffer = []
prefix = " " * level
documentationFirstLine = self.CleanupDocumentationBlocks(packageBody.Documentation)
- buffer.append(
- f"{prefix}- Name: {packageBody.Identifier}\n"
- f"{prefix} Documentation: {documentationFirstLine}"
- )
+ buffer.append(f"{prefix}- Name: {packageBody.Identifier}\n{prefix} Documentation: {documentationFirstLine}")
buffer.append(f"{prefix} Declared:")
for item in packageBody.DeclaredItems:
for line in self.formatDeclaredItems(item, level + 1):