Do not unconditionally trim comments

This commit is contained in:
Jeremy Kolb 2019-01-26 09:55:30 -05:00
parent 8c08b6825e
commit e9e0ea0398

View file

@ -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