Skip to content

Only Directive does not order text as expected #1488

Closed
@shimizukawa

Description

@shimizukawa

Learning reST to write user manuals. (Hardware products.) Devices can have one of three network connections so the format of one file is:

Standard text
.. only:: test1
   text
.. only:: test2
   text
.. only:: test1 or test2
   text
.. only test3
   text

If the headings in the 'test1 or test2' section does not match the headings of 'test1' or 'test2' section, the 'test1 or test2' section appears before the 'test1' or 'test2' sections.
Attached are two ZIP files of the resulting html files. The test1, test2, and test3 tags are defined in the associated conf.py files.


Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions