You only ever do anything (print the line) for the "header" line of each of your blocks. Two approaches that come to mind:
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: process multiline text and print in desired format
by Fletch
in thread process multiline text and print in desired format
by ak_mmx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |