html-tstring 0.1.3__tar.gz → 0.1.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: html-tstring
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: HTML renderer for PEP 750 template strings
5
5
  Keywords: html,pep750,t-strings,template-strings,thtml
6
6
  Author: Koudai Aono
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3
13
13
  Classifier: Programming Language :: Python :: 3 :: Only
14
14
  Classifier: Programming Language :: Python :: 3.14
15
15
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
16
- Requires-Dist: tstring-html-bindings>=0.1.3
16
+ Requires-Dist: tstring-html-bindings>=0.1.4
17
17
  Maintainer: Koudai Aono
18
18
  Maintainer-email: Koudai Aono <koxudaxi@gmail.com>
19
19
  Requires-Python: >=3.14
@@ -1,13 +1,13 @@
1
1
  [project]
2
2
  name = "html-tstring"
3
- version = "0.1.3"
3
+ version = "0.1.4"
4
4
  description = "HTML renderer for PEP 750 template strings"
5
5
  readme = "README.md"
6
6
  license = { text = "MIT" }
7
7
  authors = [{ name = "Koudai Aono", email = "koxudaxi@gmail.com" }]
8
8
  maintainers = [{ name = "Koudai Aono", email = "koxudaxi@gmail.com" }]
9
9
  requires-python = ">=3.14"
10
- dependencies = ["tstring-html-bindings>=0.1.3"]
10
+ dependencies = ["tstring-html-bindings>=0.1.4"]
11
11
  keywords = ["html", "pep750", "t-strings", "template-strings", "thtml"]
12
12
  classifiers = [
13
13
  "Development Status :: 4 - Beta",
@@ -30,9 +30,9 @@ def check_template(template: HtmlTemplate) -> None:
30
30
  _bindings.check_html_template(_validate_template(template, "check_template"))
31
31
 
32
32
 
33
- def format_template(template: HtmlTemplate) -> str:
33
+ def format_template(template: HtmlTemplate, *, line_length: int = 80) -> str:
34
34
  checked = _validate_template(template, "format_template")
35
- return _bindings.format_html_template(checked)
35
+ return _bindings.format_html_template(checked, line_length=line_length)
36
36
 
37
37
 
38
38
  def compile_template(template: HtmlTemplate) -> CompiledHtmlTemplate:
File without changes