Trim a trailing whitespace on empty line inside code block comment
@@ -332,7 +332,11 @@ fn rewrite_comment_inner(
inside_code_block = !inside_code_block;
}
if inside_code_block {
+ if line.is_empty() && result.ends_with(' ') {
+ result.pop();
+ } else {
result.push_str(line);
+ }
continue;
}
