Improved doctest formatting