Each case has an edict which collects the text of if its children, each of which have a different prototype.
Case #1 is unwieldy
… so in
Case #2 I capture the outputs of collect_if into separate variables, but I still find it messy
… so next I try to break this into separate lines
Case #3 The variables interpolate, but the string literals disappear.
Why do the literal strings disappear ?
An additional question:
Why the .bold operator affects subsequent text rather than being scoped to the string on which it is called?
These sorts of questions are always useful. I spend ages looking for a (phantom) glitch in list.format() until I realised we were collecting $Text as a singe string. Then the penny dropped about string.paragraphList().