Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim leading whitespace characters along doctest flags #13164

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

m-aciek
Copy link
Contributor

@m-aciek m-aciek commented Dec 4, 2024

Subject: trim leading whitespaces along with doctest flags comments

Feature or Bugfix

  • Feature

Purpose

  • improve rendering of doctest blocks by removing trailing spaces from the output

Detail

  • extra trailing spaces can be seen in the code blocks output in a line where doctest comment is in the source code (note extra highlight after the dir(sys)
Zrzut ekranu 2024-12-5 o 00 45 19
  • it indirectly is causing sphinx-lint failures in a translated code blocks, as the sphinx-lint disallows trailing spaces

Related

@m-aciek m-aciek force-pushed the trim-spaces-with-doctest-flags branch from 7576637 to 39542bd Compare December 4, 2024 23:53
@m-aciek m-aciek force-pushed the trim-spaces-with-doctest-flags branch from 39542bd to 8ba1171 Compare December 4, 2024 23:54
@m-aciek m-aciek changed the title Trim leading spaces along doctest flags Trim leading whitespace characters along doctest flags Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants