Skip to content

@par not processed correctly when front matter is absent #1162

@akrzemi1

Description

@akrzemi1

Given the following comment

/**
    
    @par Effects 
    Initializes storage value with expression `MP::marked_value()`.
    
    @post `has_value()` is `false`.
  */
  AK_TOOLKIT_CONSTEXPR markable() AK_TOOLKIT_NOEXCEPT_AS(MP::marked_value())
    : _storage(MP::store_representation(MP::marked_value())) {}

MrDocs renders the following Asciidoc output

Image

Note that the text following @par is displayed on top.

This does no longer happen, when I put some text before @par:

/**
    
    Default constructor.
    
    @par Effects 
    Initializes storage value with expression `MP::marked_value()`.
    
    @post `has_value()` is `false`.
  */
  AK_TOOLKIT_CONSTEXPR markable() AK_TOOLKIT_NOEXCEPT_AS(MP::marked_value())
    : _storage(MP::store_representation(MP::marked_value())) {}

In that case, I get the intuitive output:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions