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