Fix document generator to remove trailing space in generated document.

Update generated document.