fix baseformat to allow empty text content
fix - don't print double newline for plain text