diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2022-10-02 11:21:00 -0700 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2022-10-02 11:21:06 -0700 |
| commit | d9004c9e5c12bdec1516f10bc11db7e6cfeeee3a (patch) | |
| tree | fc46ceaf0b101a20253558ce47341d7fb1cb19e6 | |
| parent | 8b004e0c267a52cedc2567ad257344f2f2be29ee (diff) | |
Officially deprecate writeJATS...
in favor of writeJatsArchiving.
| -rw-r--r-- | src/Text/Pandoc/Writers/JATS.hs | 1 | ||||
| -rw-r--r-- | test/Tests/Writers/JATS.hs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/JATS.hs b/src/Text/Pandoc/Writers/JATS.hs index b9ecafa0e..f53fe3065 100644 --- a/src/Text/Pandoc/Writers/JATS.hs +++ b/src/Text/Pandoc/Writers/JATS.hs @@ -70,6 +70,7 @@ writeJatsArticleAuthoring = writeJats TagSetArticleAuthoring -- | Alias for @'writeJatsArchiving'@. This function exists for backwards -- compatibility, but will be deprecated in the future. Use -- @'writeJatsArchiving'@ instead. +{-# DEPRECATED writeJATS "Use writeJatsArchiving instead" #-} writeJATS :: PandocMonad m => WriterOptions -> Pandoc -> m Text writeJATS = writeJatsArchiving diff --git a/test/Tests/Writers/JATS.hs b/test/Tests/Writers/JATS.hs index 8abf33fe2..e34f6481b 100644 --- a/test/Tests/Writers/JATS.hs +++ b/test/Tests/Writers/JATS.hs @@ -11,7 +11,7 @@ import Text.Pandoc.Builder import qualified Data.Text as T jats :: (ToPandoc a) => a -> Text -jats = purely (writeJATS def{ writerWrapText = WrapNone }) +jats = purely (writeJatsArchiving def{ writerWrapText = WrapNone }) . toPandoc jatsArticleAuthoring :: (ToPandoc a) => a -> Text |
