Skip to content

Scaladoc tool: Multiple @note tags cannot be interspersed with body text #10237

@scabug

Description

@scabug

The documentation for Scaladoc expressly states that multiple @note tags are supported. However, there are several problems when multiple @note tags are used:

  1. When rendered to HTML, these notes are combined into a single note, with the paragraph body of each note separated by a line containing a single comma.

  2. The separate @note elements are not rendered where they appear in the body text, but all the notes are rendered together, possibly at the location of the first @note. This may perhaps be intentional, but makes it impossible to note important points within a larger discussion.

  3. The @note elements are rendered in reverse order.

Thus, the following Scaladoc markup is rendered as shown in the attached screenshot:

* Some body text.
  *
  * @note This is the body of the first note.
  *
  * Some more body text.
  *
  * @note This is the body of the second note.
  *
  * @note This is the body of the third note.

(Observe also that the ‘Note’ label in the screenshot is not rendered as boldly as it should be, due to the Bold/Italic variants of the Open Sans font not having been embedded in the generated HTML. See SI-10235.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions