Skip to content

Commit 7f09df7

Browse files
committed
Fix node display
1 parent 3d9a3e4 commit 7f09df7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vicutils/printBin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Default configuration constants
44
DEFAULT_UNIT_SIZE = 3
5-
DEFAULT_VALUE_FILL_CHAR = " "
5+
DEFAULT_VALUE_FILL_CHAR = " " # Character used to pad node values (e.g., "_5_")
66
DEFAULT_CONNECTOR_FILL_CHAR = "_" # Character used to fill horizontal gaps between node pairs
77

88

@@ -176,7 +176,7 @@ def nodeToMat(node: BinaryNode, depth=-1, valueFillChar=None, connectorFillChar=
176176
if i + 1 < len(prevValueIndexes):
177177
# Calculate parent position (should not be overwritten)
178178
parentCol = (prevValueIndexes[i] + prevValueIndexes[i + 1]) // 2
179-
# Fill columns between children (inclusive), except parent position
179+
# Fill columns between children, except parent position
180180
for col in range(prevValueIndexes[i] + 1, prevValueIndexes[i + 1]):
181181
if col != parentCol:
182182
mat[level][col] = center("", unitSize=unitSize, fillChar=connectorFillChar)

0 commit comments

Comments
 (0)