Implement docstring folding. Refs #968
Merge pull request #1310 from pepeleproso/master

Implement docstring folding