mirror of https://github.com/YGGverse/Yoda.git
yggverse
2 months ago
2 changed files with 9 additions and 15 deletions
@ -1,17 +1,11 @@
@@ -1,17 +1,11 @@
|
||||
use gtk::glib::{gformat, markup_escape_text, GString}; |
||||
use gtk::glib::{gformat, GString}; |
||||
|
||||
pub struct Plain { |
||||
markup: GString, |
||||
// nothing yet..
|
||||
} |
||||
|
||||
impl Plain { |
||||
pub fn from(line: &str) -> Plain { |
||||
Self { |
||||
markup: gformat!("{}\n", markup_escape_text(line)), |
||||
} |
||||
} |
||||
|
||||
pub fn markup(&self) -> &GString { |
||||
&self.markup |
||||
pub fn from(line: &str) -> GString { |
||||
gformat!("{}\n", line) |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue