Skip to content

Commit

Permalink
feat(packages): Only call 'noindent' after chapter if language is E…
Browse files Browse the repository at this point in the history
…nglish
  • Loading branch information
jodros committed Feb 6, 2024
1 parent ebdbcc9 commit bc24162
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/book.lua
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function class:registerCommands ()
SILE.call("nofoliothispage")
-- English typography (notably) expects the first paragraph under a section
-- not to be indented. Frenchies, don't use this class :)
SILE.call("noindent")
if lang == "en" then SILE.call("noindent") end
end, "Begin a new chapter")

self:registerCommand("section", function (options, content)
Expand Down Expand Up @@ -209,7 +209,7 @@ function class:registerCommands ()
SILE.call("novbreak")
-- English typography (notably) expects the first paragraph under a section
-- not to be indented. Frenchies, don't use this class :)
SILE.call("noindent")
if lang == "en" then SILE.call("noindent") end
SILE.typesetter:inhibitLeading()
end, "Begin a new section")

Expand Down Expand Up @@ -238,7 +238,7 @@ function class:registerCommands ()
SILE.call("novbreak")
-- English typography (notably) expects the first paragraph under a section
-- not to be indented. Frenchies, don't use this class :)
SILE.call("noindent")
if lang == "en" then SILE.call("noindent") end
SILE.typesetter:inhibitLeading()
end, "Begin a new subsection")

Expand Down

0 comments on commit bc24162

Please sign in to comment.