mirror of https://github.com/Textualize/rich.git
fix superfluous italics
This commit is contained in:
parent
86418dfd18
commit
f540b003f4
|
@ -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/),
|
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).
|
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
|
## [13.3.4] - 2023-04-12
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -590,7 +590,6 @@ class Syntax(JupyterMixin):
|
||||||
def __rich_measure__(
|
def __rich_measure__(
|
||||||
self, console: "Console", options: "ConsoleOptions"
|
self, console: "Console", options: "ConsoleOptions"
|
||||||
) -> "Measurement":
|
) -> "Measurement":
|
||||||
|
|
||||||
_, right, _, left = Padding.unpack(self.padding)
|
_, right, _, left = Padding.unpack(self.padding)
|
||||||
padding = left + right
|
padding = left + right
|
||||||
if self.code_width is not None:
|
if self.code_width is not None:
|
||||||
|
@ -688,7 +687,7 @@ class Syntax(JupyterMixin):
|
||||||
lines = (
|
lines = (
|
||||||
Text("\n")
|
Text("\n")
|
||||||
.join(lines)
|
.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)
|
.split("\n", allow_blank=True)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -830,7 +829,6 @@ def _get_code_index_for_syntax_position(
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__": # pragma: no cover
|
if __name__ == "__main__": # pragma: no cover
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue