Skip to content

Commit

Permalink
fix(languages): Remove multiple repetitions of U+00A0 nbsp in French
Browse files Browse the repository at this point in the history
The SBL and NCL bibles in USX have several instances of it,
including before high punctuations and colons.
In those cases this is plain wrong...
There could be other cases where the typist used multiple
no-break space to create indentations, but this bad practice.
  • Loading branch information
Omikhleia authored and Didier Willis committed Dec 29, 2023
1 parent 3f1abfa commit 0356a49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions languages/fr.lua
Expand Up @@ -176,6 +176,7 @@ function SILE.nodeMakers.fr:mustRemove (i, items)
if i < #items then
local next = items[i+1].text
if self:isSpace(next)
or self:isNonBreakingSpace(next)
or self:isHighPunctuation(next)
or self:isColonPunctuation(next)
or self:isClosingQuote(next) then
Expand Down

0 comments on commit 0356a49

Please sign in to comment.