diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-09-15 17:41:22 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-09-15 17:41:22 +0000 |
commit | cb77ffe8f3b61e5dd488d918b067efd28c07948e (patch) | |
tree | 487002380e31311809c161f4e5b09638f2f46ccf /src/journal.rs | |
parent | 794ea63e46212941e73ca3933d30431d43d469b3 (diff) | |
parent | 8165ec7c6b418e32ff8518ebd04d0344f2ab6c15 (diff) | |
download | jt2-cb77ffe8f3b61e5dd488d918b067efd28c07948e.tar.gz |
Merge branch 'fix-topic' into 'main'
fix topic names containing dots
See merge request larswirzenius/jt!24
Diffstat (limited to 'src/journal.rs')
-rw-r--r-- | src/journal.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/journal.rs b/src/journal.rs index c12ebfa..a48a63d 100644 --- a/src/journal.rs +++ b/src/journal.rs @@ -223,9 +223,7 @@ fn is_dir(path: &Path) -> bool { } fn topic_path(dirname: &Path, topic: &Path) -> PathBuf { - let mut path = dirname.join(topic); - path.set_extension("mdwn"); - path + dirname.join(&format!("{}.mdwn", topic.display())) } fn current_timestamp() -> String { |