Add TODO comment.
This commit is contained in:
parent
8169499de3
commit
b56318fbe4
@ -213,6 +213,7 @@ impl<'s> StandardProperties<'s> for LatexEnvironment<'s> {
|
||||
|
||||
impl<'s> Comment<'s> {
|
||||
pub fn get_value(&self) -> String {
|
||||
// TODO: maybe we should handle parsing here instead of storing the parsing result in the AST since I imagine getting the value of comments won't be a common operation.
|
||||
let final_size = self.value.iter().map(|line| line.len()).sum();
|
||||
let mut ret = String::with_capacity(final_size);
|
||||
for line in &self.value {
|
||||
|
Loading…
x
Reference in New Issue
Block a user