Skip to content

Commit

Permalink
Merge pull request #2940 from Textualize/fix-italic-guidlines
Browse files Browse the repository at this point in the history
fix superfluous italics
  • Loading branch information
willmcgugan authored Apr 27, 2023
2 parents 86418df + 3c13948 commit 6d30ad0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [13.3.5] - 2023-04-27

### Fixed

- Fixed italic indent guides in SVG ouput

## [13.3.4] - 2023-04-12

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

- First official release, API still to be stabilized

[13.3.5]: https://github.com/textualize/rich/compare/v13.3.4...v13.3.5
[13.3.4]: https://github.com/textualize/rich/compare/v13.3.3...v13.3.4
[13.3.3]: https://github.com/textualize/rich/compare/v13.3.2...v13.3.3
[13.3.2]: https://github.com/textualize/rich/compare/v13.3.1...v13.3.2
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "rich"
homepage = "https://github.com/Textualize/rich"
documentation = "https://rich.readthedocs.io/en/latest/"
version = "13.3.4"
version = "13.3.5"
description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal"
authors = ["Will McGugan <willmcgugan@gmail.com>"]
license = "MIT"
Expand Down
4 changes: 1 addition & 3 deletions rich/syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,6 @@ def _get_number_styles(self, console: Console) -> Tuple[Style, Style, Style]:
def __rich_measure__(
self, console: "Console", options: "ConsoleOptions"
) -> "Measurement":

_, right, _, left = Padding.unpack(self.padding)
padding = left + right
if self.code_width is not None:
Expand Down Expand Up @@ -688,7 +687,7 @@ def _get_syntax(
lines = (
Text("\n")
.join(lines)
.with_indent_guides(self.tab_size, style=style)
.with_indent_guides(self.tab_size, style=style + Style(italic=False))
.split("\n", allow_blank=True)
)

Expand Down Expand Up @@ -830,7 +829,6 @@ def _get_code_index_for_syntax_position(


if __name__ == "__main__": # pragma: no cover

import argparse
import sys

Expand Down

0 comments on commit 6d30ad0

Please sign in to comment.