Skip to content

Commit

Permalink
fix quotes for inner-attribute styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Sep 17, 2023
1 parent c46161a commit 666dcdc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ This prints something like this:
from io import StringIO
from urllib.request import urlopen
from csv import reader
from tagz import html, Page
from tagz import html, Page, Style

url = (
'https://media.githubusercontent.com/media/datablist/'
Expand All @@ -155,7 +155,7 @@ url = (
)

csv = reader(StringIO(urlopen(url).read().decode()))
table = html.table(border='1', style="border-collapse: collapse;")
table = html.table(border='1', style=Style(border_collapse="collapse"))
content = list(csv)

# Make table header
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tagz"
version = "0.2.1"
version = "0.2.2"
description = "tagz is a html tags builder"
authors = ["Dmitry Orlov <me@mosquito.su>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tagz.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, *args: Any, **kwargs: Any):
super().__init__(*args, **kwargs)

def __str__(self) -> str:
return " ".join(f"{key}: \"{value}\";" for key, value in sorted(self.items()))
return " ".join(f"{key}: {value};" for key, value in sorted(self.items()))


class StyleSheet(Dict[Union[str, Tuple[str, ...]], Style]):
Expand Down

0 comments on commit 666dcdc

Please sign in to comment.