Add TODO comment.

This commit is contained in:
Tom Alexander 2023-10-02 23:29:58 -04:00
parent 8169499de3
commit b56318fbe4
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

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