Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw a user-error on finding an empty string element in a fm list
Fixes #221.
- Loading branch information
1 parent
9f35082
commit 8e5b85d
Showing
3 changed files
with
18 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
+++ | ||
title = "Post with an empty tag" | ||
description = "Ensure that empty tag in Org file gets ignored." | ||
tags = ["empty-tag", "tag"] | ||
description = "Ensure that empty tag in Org file throws a `user-error`." | ||
tags = ["", "empty-tag", "tag", "dont_export_during_make_test"] | ||
draft = false | ||
+++ | ||
|
||
[`ox-hugo` issue #221](https://github.com/kaushalmodi/ox-hugo/issues/221) | ||
|
||
The Org source of this post has: | ||
|
||
```org | ||
#+hugo_tags: "" "empty-tag" | ||
``` | ||
|
||
This test ensures that the `""` tag gets ignored. | ||
The Org source of this post has `""` in the `#+hugo_tags:`. |