Skip to content

Commit a3b0997

Browse files
committed
fix for right align
1 parent be0bd97 commit a3b0997

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.2.2] - 2020-05-22
9+
10+
### Fixed
11+
12+
- Issue with right aligned wrapped text adding extra spaces
13+
814
## [1.2.1] - 2020-05-22
915

1016
### Fixed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "rich"
33
homepage = "https://github.com/willmcgugan/rich"
44
documentation = "https://rich.readthedocs.io/en/latest/"
5-
version = "1.2.1"
5+
version = "1.2.2"
66
description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal"
77
authors = ["Will McGugan <[email protected]>"]
88
license = "MIT"

rich/containers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def justify(
120120
line.pad_right(width - cell_len(line.plain))
121121
elif align == "right":
122122
for line in self._lines:
123+
line.rstrip()
123124
line.pad_left(width - cell_len(line.plain))
124125
elif align == "full":
125126
for line_index, line in enumerate(self._lines):

0 commit comments

Comments
 (0)