tui-utilities 1.0.21__tar.gz → 1.0.23__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.

Potentially problematic release.


This version of tui-utilities might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tui_utilities
3
- Version: 1.0.21
3
+ Version: 1.0.23
4
4
  Summary: Personal-use console utilities library
5
5
  Author-email: Guido Iván Gross <grossguidoivan@gmail.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "tui_utilities"
3
- version = "1.0.21"
3
+ version = "1.0.23"
4
4
  description = "Personal-use console utilities library"
5
5
  readme = "README.md"
6
6
  license = {text = "MIT"}
@@ -74,14 +74,18 @@ def _style(
74
74
  )
75
75
  return Padding(paddable, final_padding)
76
76
 
77
+ if isinstance(object, Text):
78
+ aligned = apply_alignment(object)
79
+ padded = apply_padding(aligned)
80
+ return padded
77
81
  if isinstance(object, RenderableType):
78
82
  aligned = apply_alignment(object)
79
83
  padded = apply_padding(aligned)
80
84
  return padded
81
- elif plain_text:
85
+ if plain_text:
82
86
  styled = apply_text_styles(object)
83
87
  return styled
84
- styled = apply_text_styles(object)
88
+ styled = apply_text_styles(str(object))
85
89
  aligned = apply_alignment(styled)
86
90
  padded = apply_padding(aligned)
87
91
  return padded
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tui_utilities
3
- Version: 1.0.21
3
+ Version: 1.0.23
4
4
  Summary: Personal-use console utilities library
5
5
  Author-email: Guido Iván Gross <grossguidoivan@gmail.com>
6
6
  License: MIT
File without changes
File without changes