-
Notifications
You must be signed in to change notification settings - Fork 373
doc attribute doesn't behave like rustc does #442
Copy link
Copy link
Closed
Labels
Description
Inputs
#[no_mangle]
#[doc = "a \n b"]
pub extern "C" fn example_a() {}and
#[no_mangle]
#[doc = "a \n\n b"]
pub extern "C" fn example_b() {}Rendered rustdoc
Actual generated header
///a
b
void example_a();///a
b
void example_b();Expected generated header
///a b
void example_a();///a
///
///b
void example_b();This happens when I'm trying to generate multi-line comments with macro. Looks like (code) we simply use value in single doc attribute directly without any modification (like rustdoc does).
BTW, I'm happy to help this out :)
Reactions are currently unavailable

