Skip to content

Commit fd8d445

Browse files
miss-islingtonStanFromIrelandterryjreedy
authored
[3.12] gh-129873: IDLE: Improve help.py's method of parsing HTML (GH-129859) (#129885)
gh-129873: IDLE: Improve help.py's method of parsing HTML (GH-129859) In `help.copy_strip`, only copy the text `<section>`. In `help.HelpParser.handle_starttag` and elsewhere, remove code to skip the no longer present html. Add a reminder at the top of idle.rst to run copy_strip after changes. --------- (cherry picked from commit 6fbf15f) Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent 550ec5c commit fd8d445

File tree

5 files changed

+30
-416
lines changed

5 files changed

+30
-416
lines changed

Doc/library/idle.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ IDLE --- Python editor and shell
1212
single: Python Editor
1313
single: Integrated Development Environment
1414

15+
..
16+
Remember to update Lib/idlelib/help.html with idlelib.help.copy_source() when modifying this file.
17+
1518
--------------
1619

1720
IDLE is Python's Integrated Development and Learning Environment.

Lib/idlelib/News3.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ browsers (path, module, and stack) on high-resolution monitors.
1313

1414
gh-120104: Fix padding in config and search dialog windows in IDLE.
1515

16+
gh-129873: Simplify displaying the IDLE doc by only copying the text
17+
section of idle.html to idlelib/help.html. Patch by Stan Ulbrych.
18+
1619
gh-120083: Add explicit black IDLE Hovertip foreground color needed for
1720
recent macOS. Fixes Sonoma showing unreadable white on pale yellow.
1821
Patch by John Riggles.

0 commit comments

Comments
 (0)