Do not append new lines when as_text is True
v0.3.3