mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 08:47:18 +02:00
Fix config value followed by "Default value"
This commit is contained in:
parent
63d12101f6
commit
848fd0352b
1 changed files with 10 additions and 1 deletions
|
@ -335,7 +335,7 @@ impl Config {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
if !line.starts_with(' ') {
|
||||
if !line.starts_with(" ") {
|
||||
return Some(config_lines.join(" "));
|
||||
}
|
||||
|
||||
|
@ -648,6 +648,15 @@ mod tests {
|
|||
assert_eq!(config.unwrap(), "filter and test");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_get_config_long_value_followed_by_default_value() {
|
||||
let config = Config::get_config(
|
||||
"report.test.filter",
|
||||
"report.test.description test\nreport.test.filter filter and\n test\n Default value test",
|
||||
);
|
||||
assert_eq!(config.unwrap(), "filter and test");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_get_config_last_long_value() {
|
||||
let config = Config::get_config(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue