ismnoiet / jekyll-posts-generator

Generate jekyll posts from the terminal
10 stars 5 forks source link

if there are spaces in tags, the string gets truncated #5

Closed andy5995 closed 7 years ago

andy5995 commented 7 years ago

if there are spaces in tags, the string gets truncated

This only applies to an unmerged patch (#1)

If a tag string is: berry,blueberry,Max Berry,Smurfberry

The tags added to the post will be:

It will also truncate at the first occurrence of a space if it's after a comma.

This probably was unnoticed before with categories since they are less likely to contain spaces.

@ismnoiet you may have noticed I only copied the category code and changed all instances of category to tag

andy5995 commented 7 years ago

The fix for this is hinted at in https://github.com/ismnoiet/jekyll-posts-generator/issues/4#issuecomment-340658957

ismnoiet commented 7 years ago

Fixed in version 0.0.6.