Skip to content

Commit 6d30ad0

Browse files
authored
Merge pull request #2940 from Textualize/fix-italic-guidlines
fix superfluous italics
2 parents 86418df + 3c13948 commit 6d30ad0

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

+7
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+
## [13.3.5] - 2023-04-27
9+
10+
### Fixed
11+
12+
- Fixed italic indent guides in SVG ouput
13+
814
## [13.3.4] - 2023-04-12
915

1016
### Fixed
@@ -1936,6 +1942,7 @@ Major version bump for a breaking change to `Text.stylize signature`, which corr
19361942

19371943
- First official release, API still to be stabilized
19381944

1945+
[13.3.5]: https://github.com/textualize/rich/compare/v13.3.4...v13.3.5
19391946
[13.3.4]: https://github.com/textualize/rich/compare/v13.3.3...v13.3.4
19401947
[13.3.3]: https://github.com/textualize/rich/compare/v13.3.2...v13.3.3
19411948
[13.3.2]: https://github.com/textualize/rich/compare/v13.3.1...v13.3.2

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "rich"
33
homepage = "https://github.com/Textualize/rich"
44
documentation = "https://rich.readthedocs.io/en/latest/"
5-
version = "13.3.4"
5+
version = "13.3.5"
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/syntax.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,6 @@ def _get_number_styles(self, console: Console) -> Tuple[Style, Style, Style]:
590590
def __rich_measure__(
591591
self, console: "Console", options: "ConsoleOptions"
592592
) -> "Measurement":
593-
594593
_, right, _, left = Padding.unpack(self.padding)
595594
padding = left + right
596595
if self.code_width is not None:
@@ -688,7 +687,7 @@ def _get_syntax(
688687
lines = (
689688
Text("\n")
690689
.join(lines)
691-
.with_indent_guides(self.tab_size, style=style)
690+
.with_indent_guides(self.tab_size, style=style + Style(italic=False))
692691
.split("\n", allow_blank=True)
693692
)
694693

@@ -830,7 +829,6 @@ def _get_code_index_for_syntax_position(
830829

831830

832831
if __name__ == "__main__": # pragma: no cover
833-
834832
import argparse
835833
import sys
836834

0 commit comments

Comments
 (0)