Do not unconditionally trim comments
This commit is contained in:
parent
8c08b6825e
commit
e9e0ea0398
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue