Improvement of "none" (if feed tag is missing) #66
Labels
No labels
bug
contribution welcome
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
marvin8/feed2fedi#66
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Maybe the
Noneas a placeholder for the expected but not existing variable is misleading/confusing to readers.It's first of all not language-sensitive und sometimes not publishing a post and/or (!) or a simple space or an empty string instead would be more useful. Examples to make it more clear:
A
post_templatecontains only{content_plaintext}, but if the tag<description>is empty or if it doesn't exist at all, posting an empty post (or even withNone) doesn't make sense. In that case posting should be skipped.A
post_templatewith{title}\\n\\n{content_plaintext}→ The feed only contains<title>, but no<description>would currently result into... but instead of
Nonean empty string""could be more useful.I'm aware that this could be a bit complicated, because there a 3 or 4 conditions.
At least a self-defined variable for
Nonewould be helpful as a fallback. With that it's language-sensitive and you can also decide to remove the string using"".Thanks for creating a separate issue.
I'll have to look into this more deeply... this is might be a bit complicated as you guessed.
Fix in release 3.4.1