Fix #7113. Patch by Ɓukasz Langa.

Changes include using a list of lines instead of patching together using
string interpolation, and a multi-line value test cases.
2 files changed