forked from Proxmox/proxmox
api-macro: trim doc-comment when used as description
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
5a2fe67cd8
commit
5b41f68891
@ -487,7 +487,7 @@ pub(crate) fn api(_attr: TokenStream, item: TokenStream) -> Result<TokenStream,
|
||||
input_schema.ok_or_else(|| format_err!(sig_span, "missing input schema"))?;
|
||||
|
||||
if input_schema.description.is_none() {
|
||||
input_schema.description = Some(syn::LitStr::new(&doc_comment, doc_span));
|
||||
input_schema.description = Some(syn::LitStr::new(doc_comment.trim(), doc_span));
|
||||
}
|
||||
|
||||
let input_schema = {
|
||||
|
Loading…
Reference in New Issue
Block a user