You could format the entire output string in one go let output = fmt""" Whatevs: {whatevs()} Blah: {blah()} ... "" "