Skip to content

Commit

Permalink
JATS: correct suppress attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Nov 3, 2024
1 parent 39b87d4 commit 8a76246
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Readers/JATS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ parseBlock (Elem e) = do
Just t -> read $ T.unpack t
Nothing -> if isBook || n == 0 then n + 1 else n
headerText <- case filterChild (named "title") e of
Just t -> case maybeAttrValue "supress" t of
Just t -> case maybeAttrValue "suppress" t of
Just s -> if s == "no"
then getInlines t
else return mempty
Expand Down
6 changes: 3 additions & 3 deletions test/command/bits-title-supress.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
```
% pandoc -f jats -t native
<sec>
<title supress="no">The European Parliament</title>
<title suppress="no">The European Parliament</title>
<p>Members of the European Parliament (MEPs) are directly elected by EU citizens.</p>
</sec>
^D
Expand Down Expand Up @@ -89,7 +89,7 @@
```
% pandoc -f jats -t native
<sec>
<title supress="yes">The European Parliament</title>
<title suppress="yes">The European Parliament</title>
<p>Members of the European Parliament (MEPs) are directly elected by EU citizens.</p>
</sec>
^D
Expand Down Expand Up @@ -119,4 +119,4 @@
, Str "citizens."
]
]
```
```

0 comments on commit 8a76246

Please sign in to comment.