forked from EduCraft/curriculum-project-hub
feat(cph): add outline export command
This commit is contained in:
@@ -157,7 +157,7 @@ fn outline_entry_table(
|
||||
) -> toml::Table {
|
||||
let mut e = toml::Table::new();
|
||||
match entry {
|
||||
OutlineEntry::Element { part_index } => {
|
||||
OutlineEntry::Element { part_index, .. } => {
|
||||
let part = &lesson.parts[*part_index];
|
||||
e.insert("type".to_string(), toml::Value::String("element".into()));
|
||||
e.insert("kind".to_string(), toml::Value::String(part.kind.clone()));
|
||||
@@ -176,6 +176,7 @@ fn outline_entry_table(
|
||||
title,
|
||||
depth,
|
||||
path,
|
||||
notes: _,
|
||||
} => {
|
||||
e.insert("type".to_string(), toml::Value::String("section".into()));
|
||||
e.insert("kind".to_string(), toml::Value::String(kind.clone()));
|
||||
|
||||
Reference in New Issue
Block a user