From 90af1384433b1f537fa51f1018539d4d401ec73b Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Wed, 14 Oct 2020 21:32:51 +0200 Subject: Fix typos in comments, doc strings, error messages, and tests Typos reported by https://fossies.org/linux/test/pandoc-master.tar.gz/codespell.html See: #6738 --- src/Text/Pandoc/Readers/Creole.hs | 2 +- src/Text/Pandoc/Readers/Odt/Generic/Utils.hs | 2 +- src/Text/Pandoc/Readers/Org/Blocks.hs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Text/Pandoc/Readers') diff --git a/src/Text/Pandoc/Readers/Creole.hs b/src/Text/Pandoc/Readers/Creole.hs index 0bd02d17c..2658dfea2 100644 --- a/src/Text/Pandoc/Readers/Creole.hs +++ b/src/Text/Pandoc/Readers/Creole.hs @@ -252,7 +252,7 @@ inlineNowiki = B.code <$> (start >> manyTillChar (noneOf "\n\r") end) end = try $ string "}}}" >> lookAhead (noneOf "}") placeholder :: PandocMonad m => CRLParser m B.Inlines --- The semantics of the placeholder is basicallly implementation +-- The semantics of the placeholder is basically implementation -- dependent, so there is no way to DTRT for all cases. -- So for now we just drop them. placeholder = B.text <$> try (string "<<<" >> manyTill anyChar (string ">>>") diff --git a/src/Text/Pandoc/Readers/Odt/Generic/Utils.hs b/src/Text/Pandoc/Readers/Odt/Generic/Utils.hs index 1999469ee..146f35319 100644 --- a/src/Text/Pandoc/Readers/Odt/Generic/Utils.hs +++ b/src/Text/Pandoc/Readers/Odt/Generic/Utils.hs @@ -41,7 +41,7 @@ import Data.Maybe -- > foldr (.) id -- where '(.)' are 'id' are the ones from "Control.Category" -- and 'foldr' is the one from "Data.Foldable". --- The noun-form was chosen to be consistend with 'sum', 'product' etc +-- The noun-form was chosen to be consistent with 'sum', 'product' etc -- based on the discussion at -- -- (that I was not part of) diff --git a/src/Text/Pandoc/Readers/Org/Blocks.hs b/src/Text/Pandoc/Readers/Org/Blocks.hs index 8eb7cfdd3..cd91e9ecc 100644 --- a/src/Text/Pandoc/Readers/Org/Blocks.hs +++ b/src/Text/Pandoc/Readers/Org/Blocks.hs @@ -289,7 +289,7 @@ verseBlock blockType = try $ do return (trimInlinesF $ pure nbspIndent <> line) -- | Read a code block and the associated results block if present. Which of --- boths blocks is included in the output is determined using the "exports" +-- the blocks is included in the output is determined using the "exports" -- argument in the block header. codeBlock :: PandocMonad m => BlockAttributes -> Text -> OrgParser m (F Blocks) codeBlock blockAttrs blockType = do -- cgit v1.2.3