Skip to content

Spotless messes up <pre>{@code ...}</pre> in Javadoc #195

Closed

Description

@Zabuzard

The idiomatic

/**
 * ...
 * <pre>
 * {@code
 *   ...
 * }
 * </pre>
 */

which is used in code examples in Javadoc, gets messed up by Spotless (or something else?). It replaces all occurences of @ by &#64;. Which, in general, is good, for example for @Override and other annotations that are actually part of the code.

But since @code is a Javadoc-meta-annotation, it should not be converted.

Otherwise it messes up the rendering, as seen here:
in code
rendered

Activity

  1. added
    bug
    documentation
    on Oct 16, 2021
  2. github-actions commented on Dec 17, 2021

    @github-actions

    This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

  3. added
    inactivity-closed
    on Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdocumentationinactivity-closedpriority: normalstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions