From 8dce1569c08a1ff3b5a4e62638c5d8bf6b10b217 Mon Sep 17 00:00:00 2001 From: Duncan Tourolle Date: Sun, 9 Nov 2025 00:05:14 +0100 Subject: [PATCH] fixed typo --- pyWebLayout/abstract/inline.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pyWebLayout/abstract/inline.py b/pyWebLayout/abstract/inline.py index 2cae0a9..d6e3263 100644 --- a/pyWebLayout/abstract/inline.py +++ b/pyWebLayout/abstract/inline.py @@ -72,8 +72,7 @@ class Word: style = container.style else: raise AttributeError( - f"Container { - type(container).__name__} must have a 'style' property") + f"Container {type(container).__name__} must have a 'style' property") # Inherit background from container if not provided if background is None and hasattr(container, 'background'): @@ -128,8 +127,7 @@ class Word: container.add_word(word) else: raise AttributeError( - f"Container { - type(container).__name__} must have an 'add_word' method") + f"Container {type(container).__name__} must have an 'add_word' method") return word @@ -228,8 +226,7 @@ class FormattedSpan: style = container.style else: raise AttributeError( - f"Container { - type(container).__name__} must have a 'style' property") + f"Container {type(container).__name__} must have a 'style' property") # Inherit background from container if not provided if background is None and hasattr(container, 'background'): @@ -243,8 +240,7 @@ class FormattedSpan: container.add_span(span) else: raise AttributeError( - f"Container { - type(container).__name__} must have an 'add_span' method") + f"Container {type(container).__name__} must have an 'add_span' method") return span