Skip to content

Commit

Permalink
Preserve newlines in docstring description
Browse files Browse the repository at this point in the history
  • Loading branch information
sfisol committed Dec 2, 2020
1 parent 225bb7b commit b08e1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/src/actix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ fn extract_fn_documentation(
}
};
let summary = none_if_empty(summary.into_iter().collect::<String>().trim());
let description = none_if_empty(description.into_iter().collect::<String>().trim());
let description = none_if_empty(description.join("\n").trim());
(summary, description)
}

Expand Down

0 comments on commit b08e1c0

Please sign in to comment.