Added support for multi-line input in golden tests.

[Delivers #55708230]
Merge branch 'multiline'