prettify inserts whitespace into textarea

Bug #1555829 reported by Tim Schnell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Beautiful Soup
Fix Released
Undecided
Unassigned

Bug Description

Inserting a linebreak in between the textarea tags results in the textarea have a whitespace value and not displaying placeholder information.

>>> output = '<textarea></textarea>'
>>> import bs4
>>> soup = bs4.BeautifulSoup(output, 'html.parser')
>>> output = soup.prettify(formatter=None)
>>> output
u'<textarea>\n</textarea>'

Revision history for this message
Leonard Richardson (leonardr) wrote :

Fixed in revision 401.

Changed in beautifulsoup:
status: New → Fix Committed
Changed in beautifulsoup:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.