An object-oriented Python approach towards providing a giant wrapper for Tikz code, with the goal of streamlining the process of creating complex figures for TeX documents.
It's because in line 36 or 38, one whitespace is added on the right, and one on the left. However only the right whitespace is valid, resulting "Softmax" to be "Softmax ".
Please note in the Transformer Example the right space between the text and the block is bigger than the left.
https://github.com/ltrujello/Tikz-Python/blob/32e40b4a03332358c80bb6316361bca8ef65b748/src/tikzpy/drawing_objects/node.py#L33C1-L39C1
It's because in line 36 or 38, one whitespace is added on the right, and one on the left. However only the right whitespace is valid, resulting "Softmax" to be "Softmax ".