fixed newline issues

This commit is contained in:
Anton-4 2021-12-09 13:55:18 +01:00
parent b3420d793f
commit 9a2187ecd2
17 changed files with 147 additions and 138 deletions

View file

@ -322,12 +322,12 @@ impl<'a> CommentOrNewline<'a> {
}
}
pub fn to_string(&self) -> std::string::String {
pub fn to_string_repr(&self) -> std::string::String {
use CommentOrNewline::*;
match self {
Newline => "\n".to_owned(),
LineComment(comment_str) => format!("#{}",comment_str),
DocComment(comment_str) => format!("##{}",comment_str),
LineComment(comment_str) => format!("#{}", comment_str),
DocComment(comment_str) => format!("##{}", comment_str),
}
}
}