fix autoformatting raw strings

This commit is contained in:
Evan Almloff committed 2023-06-02 12:03:56 -05:00
1 parent 563a2b0953
commit d9e0b9a918
9 files changed
+89 -48

No files matched your search

+3 -1
View File
@@ -8,6 +8,8 @@ use std::fmt::{Result, Write};
use dioxus_rsx::IfmtInput;
use crate::write_ifmt;
/// The output buffer that tracks indent and string
#[derive(Debug, Default)]
pub struct Buffer {
@@ -48,7 +50,7 @@ impl Buffer {
}
pub fn write_text(&mut self, text: &IfmtInput) -> Result {
write!(self.buf, "\"{}\"", text.source.as_ref().unwrap().value())
write_ifmt(text, &mut self.buf)
}
}