diff --git a/docs/images/example_05_html_table_with_images.png b/docs/images/example_05_html_table_with_images.png
index 3384603..2cc18bc 100644
Binary files a/docs/images/example_05_html_table_with_images.png and b/docs/images/example_05_html_table_with_images.png differ
diff --git a/pyWebLayout/concrete/text.py b/pyWebLayout/concrete/text.py
index 00d263c..ab6b6d8 100644
--- a/pyWebLayout/concrete/text.py
+++ b/pyWebLayout/concrete/text.py
@@ -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']:
"""