Add more flexible interface to doc formatting
Add more flexible interface to doc formatting

Add doc_format.format_docs which, instead of being hard-coded to format
into a gtk.TextBuffer, takes a callback function.

alexey4petrov/reinteract,alexey4petrov/reinteract,alexey4petrov/reinteract