summaryrefslogtreecommitdiffstats
path: root/src/modules/line_break.rs
blob: 223695dcfadfa3f5aefabf068db12513654ac4f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::{Context, Module};

/// Creates a segment for the line break
pub fn segment(_context: &Context) -> Option<Module> {
    const LINE_ENDING: &str = "\n";

    let mut module = Module::new("line_break");

    module.get_prefix().set_value("");
    module.get_suffix().set_value("");

    module.new_segment("character", LINE_ENDING);

    Some(module)
}