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

file's multiple includes on 1 line #762

Closed
2bndy5 opened this issue Nov 17, 2021 · 1 comment · Fixed by #763
Closed

file's multiple includes on 1 line #762

2bndy5 opened this issue Nov 17, 2021 · 1 comment · Fixed by #763

Comments

@2bndy5
Copy link
Contributor

2bndy5 commented Nov 17, 2021

when creating the solution for #757, I noticed that the includes list of files would only span 1 line despite having multiple included files.

example from breathe docs:
image

I found an easy fix for this:
https://github.com/michaeljones/breathe/blob/aec47028e05ad8d77e960db9d25140e9fd1c0127/breathe/renderer/sphinxrenderer.py#L1700-L1706
Should return

        return [nodes.container("", nodes.emphasis(text=text))]

which puts each emphasized text into a separate div element.
image

@2bndy5
Copy link
Contributor Author

2bndy5 commented Nov 17, 2021

swing and a hit

I tried my hand at making the local include files cross-referenced links... I managed this using visit_docreftext(), but I had to add an empty list as a class attribute (named para) to incType in compoundsuper.py
image
image

Stay tuned for another PR.

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

Successfully merging a pull request may close this issue.

1 participant