code: def _breakRemNewlines(tag):
  	
  	for i,c in enumerate(tag.contents):
  		if type(c) != bs4.element.NavigableString:
  			continue
  		c.replace_with(re.sub(r' {2,}', ' ', c).replace('\n',''))
docs: non-recursively break spaces and remove newlines in the tag