Do not unconditionally trim comments
This commit is contained in:
@@ -123,8 +123,7 @@ pub trait DocCommentsOwner: AstNode {
|
|||||||
.map(|comment| {
|
.map(|comment| {
|
||||||
let prefix_len = comment.prefix().len();
|
let prefix_len = comment.prefix().len();
|
||||||
|
|
||||||
// Strip leading and trailing whitespace
|
let line = comment.text().as_str();
|
||||||
let line = comment.text().as_str().trim();
|
|
||||||
|
|
||||||
// Determine if the prefix or prefix + 1 char is stripped
|
// Determine if the prefix or prefix + 1 char is stripped
|
||||||
let pos = if line
|
let pos = if line
|
||||||
|
|||||||
Reference in New Issue
Block a user