Fix for _build_doc() which was broken in the last commit.
Authored by: bugman 2011-07-01
Parent: [r13393]
Child: [r13395]