Added wasm implementations for formattedtext

This commit is contained in:
2023-09-20 14:23:46 -07:00
parent c237e9d5ec
commit 470c3a49ed
4 changed files with 72 additions and 52 deletions

View File

@ -0,0 +1,12 @@
use super::FormattedText;
impl FormattedText {
pub fn newline() -> Result<(), ()> {
print!("\n");
return Ok(());
}
pub fn write(&self) -> String {
return self.text.clone();
}
}