thtml-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: thtml-tstring
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: T-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 = "thtml-tstring"
3
- version = "0.1.3"
3
+ version = "0.1.4"
4
4
  description = "T-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",
@@ -113,9 +113,9 @@ def check_template(template: ThtmlTemplate) -> None:
113
113
  _bindings.check_thtml_template(_validate_template(template, "check_template"))
114
114
 
115
115
 
116
- def format_template(template: ThtmlTemplate) -> str:
116
+ def format_template(template: ThtmlTemplate, *, line_length: int = 80) -> str:
117
117
  checked = _validate_template(template, "format_template")
118
- return _bindings.format_thtml_template(checked)
118
+ return _bindings.format_thtml_template(checked, line_length=line_length)
119
119
 
120
120
 
121
121
  def compile_template(template: ThtmlTemplate) -> CompiledThtmlTemplate:
File without changes