fix: sort expression printing
parent
f0967b7072
commit
f7307953d8
|
@ -254,11 +254,12 @@ partial def infoFormatToHtml (i : CodeWithInfos) : HtmlM (Array Html) := do
|
||||||
| .sort _ =>
|
| .sort _ =>
|
||||||
match t with
|
match t with
|
||||||
| .text t =>
|
| .text t =>
|
||||||
let mut sortPrefix :: rest := t.splitOn " " | unreachable!
|
let sortPrefix :: rest := t.splitOn " " | unreachable!
|
||||||
let sortLink := <a href={s!"{← getRoot}foundational_types.html"}>{sortPrefix}</a>
|
let sortLink := <a href={s!"{← getRoot}foundational_types.html"}>{sortPrefix}</a>
|
||||||
if rest != [] then
|
let mut restStr := String.intercalate " " rest
|
||||||
rest := " " :: rest
|
if restStr.length != 0 then
|
||||||
return #[sortLink, Html.text <| String.join rest]
|
restStr := " " ++ restStr
|
||||||
|
return #[sortLink, Html.text restStr]
|
||||||
| _ =>
|
| _ =>
|
||||||
return #[<a href={s!"{← getRoot}foundational_types.html"}>[← infoFormatToHtml t]</a>]
|
return #[<a href={s!"{← getRoot}foundational_types.html"}>[← infoFormatToHtml t]</a>]
|
||||||
| _ =>
|
| _ =>
|
||||||
|
|
Loading…
Reference in New Issue