> So, why behaves the diversion (for me) unexpected, or what > am I doing wrong?
Diversions contain text that has been formatted and output. The partially collected line that exists when you terminate the diversion has not been output, so it does not become part of the diversion. To achieve what you (probably) want, insert a ".br" before you end the diversion, this flushes the partially collected line to the output (and thus into the diversion).