Skip to content

Commit

Permalink
Compensate for a regression in tag collection order in Org 9.2
Browse files Browse the repository at this point in the history
The order in which the tags from FILETAGS and from headings are
collected together seems to have changed between Org 9.1.x and 9.2.

Need to investigate later.

Ref: #252
  • Loading branch information
kaushalmodi committed Jan 2, 2019
1 parent db9ecc7 commit 30f1e1e
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Expand Up @@ -4,7 +4,7 @@ description = """
Test to check that backslashes in `\\|` and `\\\\` are correctly escaped
in the front-matter.
"""
tags = ["description", "special-block", "toml", "escaping", "backslashes", "front-matter", "multi-line"]
tags = ["front-matter", "description", "special-block", "toml", "escaping", "backslashes", "multi-line"]
draft = false
+++

Expand Down
Expand Up @@ -3,7 +3,7 @@ title: "Multi-line description with backslashes (YAML)"
description: >
Test to check that backslashes in `\|` and `\\` are correctly escaped
in the front-matter.
tags: ["description", "special-block", "yaml", "escaping", "backslashes", "front-matter", "multi-line"]
tags: ["front-matter", "description", "special-block", "yaml", "escaping", "backslashes", "multi-line"]
draft: false
---

Expand Down
@@ -1,7 +1,7 @@
+++
title = "Single-line description with backslashes (TOML)"
description = "Test to check that backslashes in `\\|` and `\\\\` are correctly escaped."
tags = ["description", "special-block", "toml", "escaping", "backslashes", "front-matter", "single-line"]
tags = ["front-matter", "description", "special-block", "toml", "escaping", "backslashes", "single-line"]
draft = false
+++

Expand Down
@@ -1,7 +1,7 @@
---
title: "Single-line description with backslashes (YAML)"
description: "Test to check that backslashes in `\\|` and `\\\\` are correctly escaped."
tags: ["description", "special-block", "yaml", "escaping", "backslashes", "front-matter", "single-line"]
tags: ["front-matter", "description", "special-block", "yaml", "escaping", "backslashes", "single-line"]
draft: false
---

Expand Down
2 changes: 1 addition & 1 deletion test/site/content/posts/inheriting-tags.md
@@ -1,6 +1,6 @@
+++
title = "Inheriting tags"
tags = ["tag with lot of words", "hyphened-tag", "alpha", "beta", "super", "gamma", "delta", "two words"]
tags = ["super", "tag with lot of words", "hyphened-tag", "alpha", "beta", "gamma", "delta", "two words"]
categories = ["cat1", "cat2"]
draft = false
+++
Expand Down
Expand Up @@ -6,7 +6,7 @@ description = """
"""
date = 2100-12-21
lastmod = 2100-12-21T00:00:00+00:00
tags = ["suppress", "lastmod", "zero", "autoset"]
tags = ["autoset", "suppress", "lastmod", "zero"]
draft = false
+++

Expand Down
Expand Up @@ -6,7 +6,7 @@ description = """
"""
date = 2100-12-21
lastmod = 2100-12-21
tags = ["suppress", "lastmod", "nonzero", "manual"]
tags = ["manual", "suppress", "lastmod", "nonzero"]
draft = false
+++

Expand Down
Expand Up @@ -2,7 +2,7 @@
title = "Suppress lastmod with auto-set-lastmod"
description = "`lastmod` front-matter parameter is suppressed in this post."
date = 2100-12-21
tags = ["suppress", "lastmod", "nonzero", "autoset"]
tags = ["autoset", "suppress", "lastmod", "nonzero"]
draft = false
+++

Expand Down
Expand Up @@ -4,7 +4,7 @@ description = """
Ensure that nil value of parsed DATE is also handled in the "suppress
lastmod" logic.
"""
tags = ["suppress", "lastmod", "nonzero", "autoset", "date", "unset"]
tags = ["autoset", "suppress", "lastmod", "nonzero", "date", "unset"]
draft = false
+++

Expand Down
2 changes: 1 addition & 1 deletion test/site/content/posts/unsuppress-lastmod-in-subtree.md
Expand Up @@ -3,7 +3,7 @@ title = "Unsuppress lastmod"
description = "`lastmod` front-matter parameter is **not** suppressed in this post."
date = 2100-12-10
lastmod = 2100-12-21T00:00:00+00:00
tags = ["suppress", "lastmod", "nonzero", "autoset"]
tags = ["autoset", "suppress", "lastmod", "nonzero"]
draft = false
+++

Expand Down

0 comments on commit 30f1e1e

Please sign in to comment.