summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthewsot@outlook.com>2021-12-27 10:03:16 -0800
committerMatthew Sotoudeh <matthewsot@outlook.com>2021-12-27 10:03:16 -0800
commit3d3dd0dafdf81d4c2db134636c77a8f2e13850d1 (patch)
tree13c0623bbf429a93acfcbca7f014bb10500b9048
parent663bfe7d39f639a3737f8ed83c423537a92e5a68 (diff)
Update the styles
-rw-r--r--.gitignore1
-rw-r--r--calendar_style.css (renamed from stylesheet.css)0
-rw-r--r--src/main.rs8
3 files changed, 5 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index ef768c4..f0a9da3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ target
.*.sw*
*.html
wtd.md
+*.sh
diff --git a/stylesheet.css b/calendar_style.css
index b70e5b5..b70e5b5 100644
--- a/stylesheet.css
+++ b/calendar_style.css
diff --git a/src/main.rs b/src/main.rs
index 1464bc2..e74dfa0 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -144,11 +144,11 @@ fn tasks_to_html(tasks: &Vec<Task>) -> String {
("busy", "I will be genuinely busy, e.g., a meeting with others."),
("rough", "The nature of the event (e.g., a hike) makes it difficult to preduct the exact start/end times."),
("tentative", "This event timing is only tentative."),
- ("join-me", "This is an open event; if you're interested in attending with me please reach out!"),
+ ("join-me", "This is an open event; if you're interested in joining please reach out!"),
("self", "This is scheduled time for me to complete a specific work or personal task; I can usually reschedule such blocks when requested."),
]);
- let mut html = "<html><head><meta charset=\"UTF-8\"><title>Calendar</title><link rel=\"stylesheet\" href=\"stylesheet.css\"></link></head><body>".to_string();
+ let mut html = "<html><head><meta charset=\"UTF-8\"><title>Calendar</title><link rel=\"stylesheet\" href=\"calendar_style.css\"></link></head><body>".to_string();
let n_days = 14;
let start_period = Local::now().date().naive_local();
@@ -338,7 +338,7 @@ fn main() {
}
current = current.succ();
};
- } else if l.starts_with("- [ ]") {
+ } else if l.starts_with("- [ ]") || l.starts_with("- [X]") {
// '- [ ] ...', starts a new task block
let date = the_date.expect("No current date parsed yet...");
tasks.push(Task {
@@ -355,7 +355,7 @@ fn main() {
handle_task_details(l, tasks.last_mut().expect("Unexpected error..."));
} else {
if l.trim().len() > 0 {
- print!("Ignoring line: {}\n", l);
+ eprint!("Ignoring line: {}\n", l);
}
}
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback