Skip to content

\snippet{doc} tag in Doxygen v1.11 adds incorrect paragraph with a break before snippet text #10935

@DCDEIE

Description

@DCDEIE

Describe the bug

Previously, the \snippet{doc} tag respected spacing in snippet text contained in .md files and in .dox files at the point where snippet tags were inserted. Now, there is a paragraph with a break inserted between the snippet tag and text or section titles before the snippet tag.

Screenshots

dox_issue_p_tag_doxygen_1_11
dox_issue_br_tag_doxygen_1_11

To Reproduce

test_snippet_spacing.zip

Expected behavior

There should be no extra space by default between the text before a snippet and the snippet text that is inserted at the time of compiling HTML Help, unless the user has specified this spacing.

  • In the zip file to reproduce this issue, the section titled Testing snippets to show incorrect space inserted before snippet tag demonstrates this spacing issue.
  • In the zip file to reproduce this issue, the section titled Testing snippets to show workaround to remove extra space before snippet tag shows how moving the snippet tag back to be in-line with the text directly before the snippet tag resolves this spacing issue in all cases except after a section title.

Version

  • Doxygen v1.11
  • Windows 10, 64-bit

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions