Minor formatting improvements and fixes to idle.rst (GH-17165)

(cherry picked from commit d6c08db8538d046d783db44fe4e70a60af0fb02e)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
2 files changed