Converts a multi-line template string to a one-line template string with visible line separators (
\n
).