Skip to content

Add support for multi-line doc strings #44

@JonathanWoollett-Light

Description

@JonathanWoollett-Light

Currently when multi-line doc strings are used the error message

Multi-line comments are disabled by default by displaydoc. Please consider using block doc comments (/** */) or adding the #[ignore_extra_doc_attributes] attribute to your type next to the derive.

is output.

This create an issue where cargo fmt as used on a repo may enforce using /// comments which creates a conflict.

It would be better to collect these lines into a string, e.g.

#[doc="first\nsecond"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions