Closes #22663: patchcheck: only modify text files under Doc/
merge with 3.4