From 3e16bf347aaccf92dceda487e72464f9d239a980 Mon Sep 17 00:00:00 2001 From: Tom Flanagan Date: Sun, 24 Jul 2022 23:07:11 -0700 Subject: [PATCH] fix #139 --- dominate/tags.py | 1 + tests/test_html.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/dominate/tags.py b/dominate/tags.py index 0c7a349..1b1a044 100644 --- a/dominate/tags.py +++ b/dominate/tags.py @@ -596,6 +596,7 @@ class sup(html_tag): class i(html_tag): + is_inline = True ''' The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different diff --git a/tests/test_html.py b/tests/test_html.py index 2fe64db..50ecf8b 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -327,6 +327,9 @@ def test_pretty(): assert span('hi', br(__inline=False), 'there').render() == \ '''hi\n
there\n
''' + assert p('goodbye ', i('cruel'), ' world').render() == \ + '''

goodbye cruel world

''' + def test_xhtml(): assert head(script('foo'), style('bar')).render(xhtml=True) == '''