Fixes docstring directives.