Fixed #18789 - Fixed some text wrap issues with methods in the docs.

Thanks neixetis@ for the report.