diff --git a/src/test_translation_parse.rs b/src/test_translation_parse.rs index aeb8680..bfeacf0 100644 --- a/src/test_translation_parse.rs +++ b/src/test_translation_parse.rs @@ -86,8 +86,8 @@ fn test_mode() { #[test] fn test_par() { - check_tl!("\\par\\s0 ", "{#return}{#return}"); - check_tl!("\\par\\s1 ", "{#return}{#return} "); + check_tl!("\\par\\s0 ", "{^\\n\\n^}"); + check_tl!("\\par\\s1 ", "{^\\n\\n^} "); } #[test] diff --git a/src/translation_parse.rs b/src/translation_parse.rs index 3ff79c6..e72219c 100644 --- a/src/translation_parse.rs +++ b/src/translation_parse.rs @@ -261,7 +261,7 @@ pub fn format_rtf_to_plover(tl: &str) -> String { let items = parse_translation(tl).iter() .map(|obj| { match obj { - Object::Paragraph(mode) => format!("{{#return}}{{#return}}{}", + Object::Paragraph(mode) => format!("{{^\\n\\n^}}{}", match mode { ParagraphMode::Default => "", ParagraphMode::Contin => " " }), Object::Fingerspell(letters) => format!("{{&{}}}", letters), Object::Stitch(letters) => format!("{{:stitch:{}}}", letters),