Fix newline parsing in dfxp.

This version replaces all newlines, not just the first one.