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

Some rst sections' content omitted from output #31

Closed
AndydeCleyre opened this issue Mar 7, 2022 · 4 comments
Closed

Some rst sections' content omitted from output #31

AndydeCleyre opened this issue Mar 7, 2022 · 4 comments

Comments

@AndydeCleyre
Copy link

$ git clone https://github.com/pypa/setuptools
$ rich setuptools/docs/pkg_resources.rst

The last bunch of sections have headers but no content in the output, though content exists in the input.

image

@willmcgugan
Copy link
Collaborator

willmcgugan commented Mar 7, 2022

@wasi-master Do you recognise this issue?

@wasi-master
Copy link
Contributor

wasi-master commented Mar 8, 2022

I've looked at the document used in the issue I'll try to reproduce it and fix the issue asap

I've figured out that those are indented paragraphs. But those should also count as normal paragraphs. Unless there's some other class specifically for indented ones in docutils. I'll see what I can find

Indented paragraphs are the issue here.

image
image

I've found the cause of the issue. Indented paragraphs are counted as block quotes in docutils. And I've only shown blockquotes that contain an author in them. I'll try fixing it

@wasi-master
Copy link
Contributor

wasi-master commented Mar 8, 2022

I've fixed the issue locally, gonna publish it soon

Image 1

@wasi-master
Copy link
Contributor

@willmcgugan Fixed in 1.1.7, You can close this issue

wasi-master added a commit to wasi-master/rich-rst that referenced this issue Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants