Skip to content

Commit d5e3d43

Browse files
deiningchristopherkenny
authored andcommitted
JATS writer: correct spelling of suppress attribute (jgm#10350)
1 parent 72670dc commit d5e3d43

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Text/Pandoc/Readers/JATS.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ parseBlock (Elem e) = do
388388
Just t -> read $ T.unpack t
389389
Nothing -> if isBook || n == 0 then n + 1 else n
390390
headerText <- case filterChild (named "title") e of
391-
Just t -> case maybeAttrValue "supress" t of
391+
Just t -> case maybeAttrValue "suppress" t of
392392
Just s -> if s == "no"
393393
then getInlines t
394394
else return mempty

test/command/bits-title-supress.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
```
4646
% pandoc -f jats -t native
4747
<sec>
48-
<title supress="no">The European Parliament</title>
48+
<title suppress="no">The European Parliament</title>
4949
<p>Members of the European Parliament (MEPs) are directly elected by EU citizens.</p>
5050
</sec>
5151
^D
@@ -89,7 +89,7 @@
8989
```
9090
% pandoc -f jats -t native
9191
<sec>
92-
<title supress="yes">The European Parliament</title>
92+
<title suppress="yes">The European Parliament</title>
9393
<p>Members of the European Parliament (MEPs) are directly elected by EU citizens.</p>
9494
</sec>
9595
^D
@@ -119,4 +119,4 @@
119119
, Str "citizens."
120120
]
121121
]
122-
```
122+
```

0 commit comments

Comments
 (0)