procclean 2.0.0__tar.gz → 2.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {procclean-2.0.0 → procclean-2.0.1}/PKG-INFO +1 -1
- {procclean-2.0.0 → procclean-2.0.1}/pyproject.toml +1 -1
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/cli/docs.py +5 -1
- {procclean-2.0.0 → procclean-2.0.1}/LICENSE +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/README.md +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/__init__.py +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/__main__.py +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/cli/__init__.py +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/cli/commands.py +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/cli/parser.py +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/core/__init__.py +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/core/actions.py +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/core/constants.py +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/core/filters.py +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/core/memory.py +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/core/models.py +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/core/process.py +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/formatters/__init__.py +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/formatters/columns.py +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/formatters/output.py +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/tui/__init__.py +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/tui/app.py +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/tui/app.tcss +0 -0
- {procclean-2.0.0 → procclean-2.0.1}/src/procclean/tui/screens.py +0 -0
|
@@ -150,8 +150,12 @@ def _extract_h2_sections(
|
|
|
150
150
|
h2_starts: list[tuple[str, int]] = []
|
|
151
151
|
for i, token in enumerate(tokens):
|
|
152
152
|
if token.type == "heading_open" and token.tag == "h2":
|
|
153
|
+
# heading_open tokens always carry a source map; skip if absent
|
|
154
|
+
# rather than defaulting to 0, which would collapse section ranges.
|
|
155
|
+
if token.map is None:
|
|
156
|
+
continue
|
|
153
157
|
title = tokens[i + 1].content
|
|
154
|
-
start_line = token.map[0]
|
|
158
|
+
start_line = token.map[0]
|
|
155
159
|
h2_starts.append((title, start_line))
|
|
156
160
|
|
|
157
161
|
h2_sections: list[tuple[str, int, int]] = []
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|