Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helper to render inline css styles #10

Merged
merged 6 commits into from
Dec 8, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
keithasaurus committed Dec 8, 2023
commit efa1a29073612e66c4d1c5ec914fd1661c77a74d
2 changes: 1 addition & 1 deletion simple_html/__init__.py
Original file line number Diff line number Diff line change
@@ -493,7 +493,7 @@ def _render(nodes: Iterable[Node], strs: List[str]) -> None:


def render_styles(
styles: dict[Union[str, SafeString], Union[str | int | float | SafeString]]
styles: dict[Union[str, SafeString], Union[str, int, float, SafeString]]
) -> SafeString:
ret = ""
for k, v in styles.items():