haml/
common.rs

1#[cfg(target_os = "windows")]
2pub fn newline() -> &'static str {
3    "\r\n"
4}
5
6#[cfg(not(target_os = "windows"))]
7pub fn newline() -> &'static str {
8    "\n"
9}
10
11/// Maintain a mapping of tags that do
12/// not require a closing tag
13pub fn does_tag_close(tag: &str) -> bool {
14    match tag {
15        "meta" => false,
16        "link" => false,
17        _ => true,
18    }
19}