diff --git a/proxmox/src/api/cli/format.rs b/proxmox/src/api/cli/format.rs index 04548c6e..8d4f05f4 100644 --- a/proxmox/src/api/cli/format.rs +++ b/proxmox/src/api/cli/format.rs @@ -144,10 +144,10 @@ pub fn generate_usage_str( let mut text = match format { DocumentationFormat::Short => { - return format!("{}{}{}{}\n\n", indent, prefix, args, option_indicator); + return format!("{}{}{}{}\n", indent, prefix, args, option_indicator); } DocumentationFormat::Long => { - format!("{}{}{}{}\n\n", indent, prefix, args, option_indicator) + format!("{}{}{}{}\n", indent, prefix, args, option_indicator) } DocumentationFormat::Full => format!( "{}{}{}{}\n\n{}\n\n", @@ -166,7 +166,6 @@ pub fn generate_usage_str( if !options.is_empty() { text.push_str("Optional parameters:\n\n"); text.push_str(&options); - text.push('\n'); } text } diff --git a/proxmox/src/api/format.rs b/proxmox/src/api/format.rs index 38928ec4..d9911eac 100644 --- a/proxmox/src/api/format.rs +++ b/proxmox/src/api/format.rs @@ -150,7 +150,6 @@ pub fn get_property_description( let indent = " "; text.push('\n'); text.push_str(&wrap_text(indent, indent, descr, 80)); - text.push('\n'); text }