Failing doctest now seems to work. Hmmm. Double escaped the newline character.
It's evidently well-known that newlines give doctests headaches.