Since 1.26wmf6 (I can't find which change caused that if any) added_lines include whitespace after line breaks and at the beginning of the string. Happens also on removed_lines and edit_diff. Doesn't happen on wikitext variables.
This has broken eg. important filter #432 on English Wikipedia and possibly more filters which check these strings.
See also