Consolidate multi-line value handling into emit().