Skip to content
Snippets Groups Projects
Commit 4780d304 authored by fauno's avatar fauno
Browse files

Issue #3 - Remove trailing dash

parent 0a43dfca
Branches hotfix/issue-3
Tags
No related merge requests found
...@@ -24,7 +24,7 @@ class PandocGenerator < Generator ...@@ -24,7 +24,7 @@ class PandocGenerator < Generator
filename = post.url.gsub(/\.html$/, ".#{output}") filename = post.url.gsub(/\.html$/, ".#{output}")
# Have a filename! # Have a filename!
filename = "#{post.url.gsub(/\//, "-")}.#{output}" if filename =~ /\/$/ filename = "#{post.url.gsub(/\//, "-").gsub(/-$/, "")}.#{output}" if filename =~ /\/$/
filename_with_path = File.join(post_path, filename) filename_with_path = File.join(post_path, filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment