Skip to content

Commit

Permalink
fix: generated template title prefix length
Browse files Browse the repository at this point in the history
  • Loading branch information
realfresh committed Sep 14, 2023
1 parent 4c66b7d commit 4fb45d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/template/item/mod.rs
Expand Up @@ -203,7 +203,7 @@ impl Template {
/// Returns the title section of the template content
pub fn content_title(&self) -> Result<String> {
let title = format!("### {} ###", self.value.title()?);
let seperator = "-".repeat(title.len() - 4);
let seperator = "-".repeat(title.len() - 6);
Ok(formatdoc! {"
###{seperator}###
{title}
Expand Down

0 comments on commit 4fb45d2

Please sign in to comment.