diff --git a/src/pydocstyle/plugins.rs b/src/pydocstyle/plugins.rs index 9c7e59af9c..13d328f6fe 100644 --- a/src/pydocstyle/plugins.rs +++ b/src/pydocstyle/plugins.rs @@ -1359,7 +1359,10 @@ static GOOGLE_ARGS_REGEX: Lazy = fn args_section(checker: &mut Checker, definition: &Definition, context: &SectionContext) { let mut args_sections: Vec = vec![]; - for line in textwrap::dedent(&context.following_lines.join("\n")).lines() { + for line in textwrap::dedent(&context.following_lines.join("\n")) + .trim() + .lines() + { if line .chars() .next()