refactor: pass at removing double spaces
This commit is contained in:
parent
1fe51b2e04
commit
1133b883f3
19 changed files with 121 additions and 121 deletions
|
@ -39,7 +39,7 @@ def doubleSpaceLinter : HepLeanTextLinter := fun lines ↦ Id.run do
|
|||
let k := (Substring.findAllSubstr l " ").toList.getLast?
|
||||
let col := match k with
|
||||
| none => 1
|
||||
| some k => k.stopPos.byteIdx
|
||||
| some k => String.offsetOfPos l k.stopPos
|
||||
some (s!" Non-initial double space in line.", lno, col)
|
||||
else none)
|
||||
errors.toArray
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue