Skip to content

Commit 16fa893

Browse files
committed
Fix spacing.
1 parent 4f9029c commit 16fa893

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

src/Text/Pandoc/Readers/HTML.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,8 @@ inline = pTagText <|> do
687687
"var" -> pCodeWithClass "var" "variable"
688688
"span" -> pSpan
689689
"math" -> pMath False
690-
"input"
691-
| lookup "type" attr == Just "checkbox"
690+
"input"
691+
| lookup "type" attr == Just "checkbox"
692692
-> asks inListItem >>= guard >> pCheckbox
693693
"script"
694694
| Just x <- lookup "type" attr

src/Text/Pandoc/Readers/JATS.hs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ parseBlock (CRef x) = return $ plain $ str $ T.toUpper x
163163
parseBlock (Elem e) = do
164164
sectionLevel <- gets jatsSectionLevel
165165
let parseBlockWithHeader = wrapWithHeader (sectionLevel+1) (getBlocks e)
166-
166+
167167
case qName (elName e) of
168168
"book" -> parseBook
169169
"book-part-wrapper" -> parseBook
@@ -234,7 +234,7 @@ parseBlock (Elem e) = do
234234
"toc-div" -> parseBlockWithHeader
235235
"toc-entry" -> parseBlockWithHeader
236236
"toc-group" -> parseBlockWithHeader
237-
"toc-title-group" -> return mempty -- handled by toc
237+
"toc-title-group" -> return mempty -- handled by toc
238238
"legend" -> parseBlockWithHeader
239239
"dedication" -> parseBlockWithHeader
240240
"foreword" -> parseBlockWithHeader
@@ -385,17 +385,17 @@ parseBlock (Elem e) = do
385385
wrapWithHeader n mBlocks = do
386386
isBook <- gets jatsBook
387387
let n' = case (filterChild (named "title") e >>= maybeAttrValue "display-as") of
388-
Just t -> read $ T.unpack t
389-
Nothing -> if isBook || n == 0 then n + 1 else n
388+
Just t -> read $ T.unpack t
389+
Nothing -> if isBook || n == 0 then n + 1 else n
390390
headerText <- case filterChild (named "title") e of
391391
Just t -> case maybeAttrValue "supress" t of
392-
Just s -> if s == "no"
393-
then getInlines t
392+
Just s -> if s == "no"
393+
then getInlines t
394394
else return mempty
395395
Nothing -> getInlines t
396396
Nothing -> do
397397
let name = qName (elName e)
398-
if (name == "dedication" || name == "foreword" || name == "preface")
398+
if (name == "dedication" || name == "foreword" || name == "preface")
399399
then return $ str $ T.toTitle name
400400
else case filterChild (named "index-title-group") e >>= filterChild (named "title") of
401401
Just i -> getInlines i
@@ -407,10 +407,10 @@ parseBlock (Elem e) = do
407407
blocks <- mBlocks
408408
let ident = attrValue "id" e
409409
modify $ \st -> st{ jatsSectionLevel = oldN }
410-
return $ (if headerText == mempty
411-
then mempty
410+
return $ (if headerText == mempty
411+
then mempty
412412
else headerWith (ident,[],[]) n' headerText) <> blocks
413-
parseBook = do
413+
parseBook = do
414414
modify $ \st -> st{ jatsBook = True }
415415
getBlocks e
416416

@@ -421,7 +421,7 @@ getInlines e' = trimInlines . mconcat <$>
421421
parseMetadata :: PandocMonad m => Element -> JATS m Blocks
422422
parseMetadata e = do
423423
isBook <- gets jatsBook
424-
if isBook then getBookTitle e else getArticleTitle e
424+
if isBook then getBookTitle e else getArticleTitle e
425425
if isBook then getBookAuthors e else getArticleAuthors e
426426
getAffiliations e
427427
getAbstract e

src/Text/Pandoc/Writers/HTML.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,7 +1732,7 @@ intrinsicEventsHTML4 =
17321732
, "onmouseout", "onmouseout", "onkeypress", "onkeydown", "onkeyup"]
17331733

17341734

1735-
-- | Check to see if Format is valid HTML
1735+
-- | Check to see if Format is valid HTML
17361736
isRawHtml :: PandocMonad m => Format -> StateT WriterState m Bool
17371737
isRawHtml f = do
17381738
html5 <- gets stHtml5
@@ -1742,7 +1742,7 @@ isRawHtml f = do
17421742

17431743
-- | Check to see if Format matches with an HTML slide variant
17441744
isSlideVariant :: Format -> Bool
1745-
isSlideVariant f = f `elem` [Format "s5", Format "slidy", Format "slideous",
1745+
isSlideVariant f = f `elem` [Format "s5", Format "slidy", Format "slideous",
17461746
Format "dzslides", Format "revealjs"]
17471747

17481748

0 commit comments

Comments
 (0)