summaryrefslogtreecommitdiff
path: root/pixel-client
diff options
context:
space:
mode:
Diffstat (limited to 'pixel-client')
-rw-r--r--pixel-client/src/strings.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/pixel-client/src/strings.rs b/pixel-client/src/strings.rs
index cf225c7d..a941ecec 100644
--- a/pixel-client/src/strings.rs
+++ b/pixel-client/src/strings.rs
@@ -23,7 +23,10 @@ impl Strings {
.skip(1)
.map(|l| {
let (k, v) = l.split_once("=").ok_or(anyhow!("'=' missing"))?;
- Ok::<_, anyhow::Error>((k.to_owned(), v.replace("%n", "\n")))
+ Ok::<_, anyhow::Error>((
+ k.trim_end().to_owned(),
+ v.trim_start().replace("%n", "\n"),
+ ))
})
.try_collect()?,
))