Skip to content

Commit 6fbf15f

Browse files
gh-129873: IDLE: Improve help.py's method of parsing HTML (#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. --------- Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent 0d9c4e2 commit 6fbf15f

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
@@ -19,6 +19,9 @@ Released on 2024-10-07
1919

2020
gh-120104: Fix padding in config and search dialog windows in IDLE.
2121

22+
gh-129873: Simplify displaying the IDLE doc by only copying the text
23+
section of idle.html to idlelib/help.html. Patch by Stan Ulbrych.
24+
2225
gh-120083: Add explicit black IDLE Hovertip foreground color needed for
2326
recent macOS. Fixes Sonoma showing unreadable white on pale yellow.
2427
Patch by John Riggles.

0 commit comments

Comments
 (0)