Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 16285ff

Browse filesBrowse files
committed
docstring cleanup
1 parent a0407d0 commit 16285ff
Copy full SHA for 16285ff

File tree

Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed

‎docs/source/about/changelog.rst

Copy file name to clipboardExpand all lines: docs/source/about/changelog.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ Unreleased
2525

2626
**Added**
2727

28-
- :pull:`832` - ``del_html_body_transform`` to strip out ``<html>``, ``<body>``, and ``<head>`` tags if needed.
28+
- :pull:`832` - ``del_html_body_transform`` to remove ``<html>``, ``<head>``, and ``<body>`` while preserving ``<head>`` and ``<body>`` children.
2929

3030
**Fixed**
3131

32-
- :pull:`832` - Fix ``html_to_vdom`` improperly handling ``<html>``, ``<body>``, and ``<head>``.
32+
- :pull:`832` - Fix ``html_to_vdom`` improperly handling ``<html>``, ``<head>``, and ``<body>``.
3333

3434
**Removed**
3535
- :pull:`832` - Removed ``idom.html.body`` as it is currently unusable due to technological limitations, and thus not needed.

‎src/idom/utils.py

Copy file name to clipboardExpand all lines: src/idom/utils.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class HTMLParseError(etree.LxmlSyntaxError): # type: ignore[misc]
213213
def del_html_body_transform(vdom: dict[str, Any]) -> dict[str, Any]:
214214
"""Transform intended for use with `html_to_vdom`.
215215
216-
Removes `<html>` and `<body>` while preserving `<head>` children.
216+
Removes `<html>`, `<head>`, and `<body>` while preserving `<head>` and `<body>` children.
217217
218218
Parameters:
219219
vdom:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.