From 410d176305a5b9cd74668cdb716d3497fd9c98e4 Mon Sep 17 00:00:00 2001 From: OndraRehounek <ondra.rehounek@seznam.cz> Date: Wed, 4 May 2022 11:09:45 +0200 Subject: [PATCH] jekyll-import: improve tags handler once more --- shared/jekyll_import.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/shared/jekyll_import.py b/shared/jekyll_import.py index 8a2bed5d..8ac174c4 100644 --- a/shared/jekyll_import.py +++ b/shared/jekyll_import.py @@ -519,7 +519,12 @@ class JekyllArticleImporter: tags = meta.get("tags", []) or [] # někdy jsou tags None if type(tags) == str: # někdy jsou tags str - tags = [tags] + if "\n" in tags: + tags = tags.split("\n") + elif " " in tags: + tags = tags.split() + else: + tags = [tags] for tag_name in tags: try: -- GitLab