aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-03-10 10:19:40 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-03-10 10:19:40 -0800
commit5608dc01e5342d367fba3377042dec3944f4d86f (patch)
tree9a6470dbb27484a90b010b8128cf50ebc2b3bff5 /test
parente17127dc2827502725acdc8d4c5e0a7a369b4201 (diff)
downloadpandoc-5608dc01e5342d367fba3377042dec3944f4d86f.tar.gz
HTML writer: Add warnings on duplicate attribute values.
This prevents emitting invalid HTML. Ultimately it would be good to prevent this in the types themselves, but this is better for now. T.P.Logging: Add DuplicateAttribute constructor to LogMessage. [API change]
Diffstat (limited to 'test')
-rw-r--r--test/command/duplicate_attributes.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/command/duplicate_attributes.md b/test/command/duplicate_attributes.md
new file mode 100644
index 000000000..b6e8a4c21
--- /dev/null
+++ b/test/command/duplicate_attributes.md
@@ -0,0 +1,7 @@
+```
+% pandoc
+[span]{.foobar style="color:blue" class="zip" style="color:red"}
+^D
+[WARNING] Ignoring duplicate attribute style="color:red".
+<p><span class="foobar zip" style="color:blue">span</span></p>
+```