fixed issue where last word was counted for spacing
This commit is contained in:
parent
8e720d4037
commit
41dc904755
Binary file not shown.
|
Before Width: | Height: | Size: 117 KiB After Width: | Height: | Size: 119 KiB |
@ -644,7 +644,10 @@ class Line(Box):
|
||||
|
||||
# Render with next text information for continuous underline/strikethrough
|
||||
text.render(next_text, self._spacing_render)
|
||||
x_cursor += self._spacing_render + text.width # x-spacing + width of text object
|
||||
# Add text width, then spacing only if there are more words
|
||||
x_cursor += text.width
|
||||
if i < len(self._text_objects) - 1:
|
||||
x_cursor += self._spacing_render
|
||||
|
||||
def query_point(self, point: Tuple[int, int]) -> Optional['QueryResult']:
|
||||
"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user