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 @@ |
|||||||
use gtk::glib::{gformat, markup_escape_text, GString}; |
use gtk::glib::{gformat, GString}; |
||||||
|
|
||||||
pub struct Plain { |
pub struct Plain { |
||||||
markup: GString, |
// nothing yet..
|
||||||
} |
} |
||||||
|
|
||||||
impl Plain { |
impl Plain { |
||||||
pub fn from(line: &str) -> Plain { |
pub fn from(line: &str) -> GString { |
||||||
Self { |
gformat!("{}\n", line) |
||||||
markup: gformat!("{}\n", markup_escape_text(line)), |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
pub fn markup(&self) -> &GString { |
|
||||||
&self.markup |
|
||||||
} |
} |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue