diff options
Diffstat (limited to 'src/Text/Pandoc/Writers/Docbook.hs')
-rw-r--r-- | src/Text/Pandoc/Writers/Docbook.hs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Text/Pandoc/Writers/Docbook.hs b/src/Text/Pandoc/Writers/Docbook.hs index c7009b891..d2c73e92b 100644 --- a/src/Text/Pandoc/Writers/Docbook.hs +++ b/src/Text/Pandoc/Writers/Docbook.hs @@ -409,9 +409,5 @@ isMathML _ = False idAndRole :: Attr -> [(Text, Text)] idAndRole (id',cls,_) = ident <> role where - ident = if T.null id' - then [] - else [("id", id')] - role = if null cls - then [] - else [("role", T.unwords cls)] + ident = [("id", id') | not (T.null id')] + role = [("role", T.unwords cls) | not (null cls)] |