From e257b54124f69682c237a5c9a5f99c5c72406c88 Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Fri, 5 Oct 2018 22:21:20 -0700 Subject: Org reader: fix behavior for successive calls of `#+EXCLUDE_TAGS`. (#4951) Calling `#+EXCLUDE_TAGS` multiple times should preserve the status of the previously declared tags. --- test/command/4284.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/command') diff --git a/test/command/4284.md b/test/command/4284.md index e2a41d14f..eddd1b03a 100644 --- a/test/command/4284.md +++ b/test/command/4284.md @@ -20,6 +20,17 @@ [Header 1 ("this-should-appear",[],[]) [Str "This",Space,Str "should",Space,Str "appear",Space,Span ("",["tag"],[("tag-name","fawn")]) [SmallCaps [Str "fawn"]]]] ``` +``` +% pandoc -f org -t native +#+EXCLUDE_TAGS: giraffe +#+EXCLUDE_TAGS: hippo +* This should not appear :giraffe: +* This should not appear :hippo: +* This should appear :noexport: +^D +[Header 1 ("this-should-appear",[],[]) [Str "This",Space,Str "should",Space,Str "appear",Space,Span ("",["tag"],[("tag-name","noexport")]) [SmallCaps [Str "noexport"]]]] +``` + ``` % pandoc -f org -t native #+EXCLUDE_TAGS: -- cgit v1.2.3