The only solution I came up with was to replace the existing text before where you want to include data and then just add it back.
For example:
<reflexive file="\config.php">
<filterchain>
<replaceregexp>
<regexp pattern="line2" replace="line2 ${line.separator} Hello World" />
</replaceregexp>
</filterchain>
</reflexive>