I am writing an HTML document with BeautifulSoup, and I would like it to not split inline text (such as text within the <p>
tag) into multiple lines. The issue that I get is that parsing the <p>a<span>b</span>c</p>
with prettify gives me the output
<p>
a
<span>
b
</span>
c
</p>
and now the HTML displays spaces between a,b,c, which I do not want. How do I avoid this?