Skip to content

Commit

Permalink
fix: Use Z(separator) instead of S(ymbol) category
Browse files Browse the repository at this point in the history
closes: #123
  • Loading branch information
hargoniX committed Mar 27, 2023
1 parent 23eb55f commit b9421b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DocGen4/Output/DocString.lean
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ partial def xmlGetHeadingId (el : Xml.Element) : String :=
unicodeToDrop (c : Char) : Bool :=
let cats := [
Unicode.GeneralCategory.P, -- punctuation
Unicode.GeneralCategory.S, -- separator
Unicode.GeneralCategory.Z, -- separator
Unicode.GeneralCategory.C -- other
]
cats.any (Unicode.isInGeneralCategory c)
Expand Down Expand Up @@ -179,7 +179,7 @@ def autoLink (el : Element) : HtmlM Element := do
return [Content.Character s]
unicodeToSplit (c : Char) : Bool :=
let cats := [
Unicode.GeneralCategory.S, -- separator
Unicode.GeneralCategory.Z, -- separator
Unicode.GeneralCategory.C -- other
]
cats.any (Unicode.isInGeneralCategory c)
Expand Down

0 comments on commit b9421b9

Please sign in to comment.