diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-02-07 08:32:47 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-02-07 09:08:22 -0800 |
commit | 4c3db9273fc8e92c2c23d4455a6ab178472be06d (patch) | |
tree | cdfc8d65ebd56c0a571f8b46854465dd434489de /src/Text/Pandoc/Writers/Docbook.hs | |
parent | 6cd77d4c638012be63d66882403804aa28feb6ed (diff) | |
download | pandoc-4c3db9273fc8e92c2c23d4455a6ab178472be06d.tar.gz |
Apply linter suggestions. Add fix_spacing to lint target in Makefile.
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)] |