Skip to content

Commit

Permalink
Fix paragraph spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
sammdot committed Oct 17, 2021
1 parent 609dfba commit 12464ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rtfcre"
version = "2.0.0"
version = "2.0.1"
description = "Python library for Rich Text Format with Court Reporting Extensions (RTF/CRE) dictionaries"
homepage = "https://github.com/sammdot/rtfcre"
authors = ["Sammi De Guzman <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion src/translation_parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!("{{^\\n\\n^}}{}",
Object::Paragraph(mode) => format!("{{^\n\n^}}{}",
match mode { ParagraphMode::Default => "", ParagraphMode::Contin => " " }),
Object::Fingerspell(letters) => format!("{{&{}}}", letters),
Object::Stitch(letters) => format!("{{:stitch:{}}}", letters),
Expand Down

0 comments on commit 12464ef

Please sign in to comment.