Skip to content

Commit

Permalink
fix superfluous italics
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Apr 27, 2023
1 parent 86418df commit f540b00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 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
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 f540b00

Please sign in to comment.