Issue #22251: Fix ReST markup to avoid errors building docs.
#10510: make distuitls upload/register use HTML standards compliant CRLF.

Patch by Ian Cordasco, approved by Éric Araujo.
Revert #22251