fix
This commit is contained in:
parent
cb4de4dcb4
commit
9c5771653e
1 changed files with 2 additions and 2 deletions
|
@ -85,9 +85,9 @@ impl Package {
|
|||
let (key, val) = line.split_once(" = ").unwrap();
|
||||
|
||||
if let Some(e) = ret.iter_mut().find(|x| x.0 == key) {
|
||||
e.1.push(val.to_string());
|
||||
e.1.push(val.trim().to_string());
|
||||
} else {
|
||||
ret.push((key.to_string(), vec![val.to_string()]));
|
||||
ret.push((key.to_string(), vec![val.trim().to_string()]));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue