Skip to content

Autodoc: empty lines are being rendered after the each docstring line in the source code page #21360

Description

@prajwalch

Zig Version

0.14.0-dev.1510+fb0028a0d

Steps to Reproduce and Observed Behavior

Given a function:

/// Appends the new subcommand to the list of subcommands.////// ## Examples////// ```zig/// var app = App.init(allocator, "myapp", "My app description");/// defer app.deinit();////// var root = app.rootCommand();////// var test = app.createCommand("test", "Run test");/// try test.addArg(Arg.positional("FILE", null, null));////// try root.addSubcommand(test);/// ```pubfnaddSubcommand(self: *Command, new_subcommand: Command) !void { ... }

This is what the source code of it looks like in the source page:
image

Expected Behavior

I expected correct rendering :)

Activity

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

    autodocThe web application for interactive documentation and generation of its assets.bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions