From 13a45b7cd2c799ee92775c3ad66333da38c6133b Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Wed, 6 Dec 2023 17:35:02 -0500 Subject: [PATCH] ruff_python_formatter: fix typo in code When I renamed `line` to `trimmed`, I forgot one. (Previously, I had rebound `line`, and I think that made these sorts of bugs impossible.) This regression is covered by new tests for Markdown supported in a subsequent commit. --- crates/ruff_python_formatter/src/expression/string/docstring.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff_python_formatter/src/expression/string/docstring.rs b/crates/ruff_python_formatter/src/expression/string/docstring.rs index 41f350bd4deb2..c90fa4480b635 100644 --- a/crates/ruff_python_formatter/src/expression/string/docstring.rs +++ b/crates/ruff_python_formatter/src/expression/string/docstring.rs @@ -1306,7 +1306,7 @@ fn indentation_trim(indent_len: TextSize, line: &str) -> &str { break; } } - line + trimmed } /// Returns the indentation of the given line and everything following it.