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

Nested needs break the latex output #1305

Open
fournier-p opened this issue Sep 23, 2024 · 4 comments
Open

Nested needs break the latex output #1305

fournier-p opened this issue Sep 23, 2024 · 4 comments
Labels

Comments

@fournier-p
Copy link

Hi,

It seems the nested needs are bugged on the latex output, without using the nested needs, the document is generated properly, but with the nested needs, inside the generated .tex file, it's like all the content of the document before the nested needs is deleted.

I'll try to provide a minimal working example soon.

@fournier-p
Copy link
Author

After a bit more investigation, it happens even with just a table in a need.

It's like the depart_table method of sphinx' LaTeXTranslator is not behaving correctly when it is inside the structure of a need, even though the structure of the needs (table, tgroup, tbody, etc) seems to be exactly the same as normal tables

@fournier-p
Copy link
Author

here is a minimal rst to test this:

=====
Title
=====

Some text before the requirement

.. req:: Requirement
    :id: req_001

    +----------------+
    | Content        |
    +----------------+

The generated .tex file will not contain the Some text before the requirement part

@fournier-p
Copy link
Author

After some more testing, this bug happens with the "complete" layout, but not the "clean" one

@chrisjsewell
Copy link
Member

thanks for looking in to it, if you could pin-point what the exact offending AST is, and/or the difference in it between complete/clean, that would be ideal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants