From e9e0ea03986294f58c371d0329926709ae2f164c Mon Sep 17 00:00:00 2001 From: Jeremy Kolb Date: Sat, 26 Jan 2019 09:55:30 -0500 Subject: Do not unconditionally trim comments --- crates/ra_syntax/src/ast.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crates/ra_syntax/src') diff --git a/crates/ra_syntax/src/ast.rs b/crates/ra_syntax/src/ast.rs index 74a45f52f..cdfb9c523 100644 --- a/crates/ra_syntax/src/ast.rs +++ b/crates/ra_syntax/src/ast.rs @@ -123,8 +123,7 @@ pub trait DocCommentsOwner: AstNode { .map(|comment| { let prefix_len = comment.prefix().len(); - // Strip leading and trailing whitespace - let line = comment.text().as_str().trim(); + let line = comment.text().as_str(); // Determine if the prefix or prefix + 1 char is stripped let pos = if line -- cgit v1.2.3