tab width printing for subtasks

This commit is contained in:
Andrei Stoica 2023-06-25 13:20:54 -04:00
parent ad557e822f
commit e90ec3e647
1 changed files with 2 additions and 4 deletions

View File

@ -15,7 +15,6 @@ pub struct TaskGroup {
pub struct Task {
pub status: Status,
pub text: String,
// level: u8,
pub subtasks: Option<Vec<Task>>,
}
@ -89,7 +88,7 @@ impl ToString for Task {
};
format!(
" - [{}] {}{}\n",
"- [{}] {}{}\n",
ch,
self.text.trim(),
subtasks.replace("\n", "\n ")
@ -133,7 +132,6 @@ impl<'a> TryFrom<&'a AstNode<'a>> for Task {
status,
text,
subtasks,
// level: 1,
})
} else {
Err(TaskError::ParsingError(