Skip to content

Commit 658c3ba

Browse files
committed
Updates annotation bullet points
Updates the annotation formatter to consistently use a custom bullet point substitution. This improves readability and allows for better control over bullet point formatting in annotations.
1 parent af3a803 commit 658c3ba

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

TouchDesigner/project.toe

88 Bytes
Binary file not shown.

TouchDesigner/td-python/annotationTools.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ class annotationFormatter:
88
HEADING3 = 1.5
99
HEADING4 = 1.25
1010

11+
BULLET_SUBSTITUTION = ' • '
12+
1113
def __init__(self, ownerOp) -> None:
1214
self.OwnerOp = ownerOp
1315
self.parser = HTMLParser()
@@ -63,9 +65,11 @@ def _format_text(self, text: str) -> str:
6365
# this is a header line
6466
output.append(header_text)
6567
else:
66-
bullet_replace: str = eachLine.replace('*', '• ', 1)
68+
bullet_replace: str = eachLine.replace(
69+
'*', annotationFormatter.BULLET_SUBSTITUTION, 1)
6770
if len(eachLine) > 0 and eachLine[0] == '-':
68-
bullet_replace = eachLine.replace('-', '• ', 1)
71+
bullet_replace = eachLine.replace(
72+
'-', annotationFormatter.BULLET_SUBSTITUTION, 1)
6973
code_formatting = self._check_color(bullet_replace)
7074
output.append(code_formatting)
7175

0 commit comments

Comments
 (0)