Remove redundant whitespace in doc buffers