Skip to content

Commit 1352d82

Browse files
committed
Just the first line of the description for the index table
1 parent 8e581be commit 1352d82

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/View.v

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,18 @@ Module Index.
7272
let (name, versions) := package in
7373
match List.rev versions with
7474
| [] => LString.s ""
75-
| last_version :: _ => LString.s
75+
| last_version :: _ =>
76+
let description := LString.split (Version.description last_version) (LString.Char.n) in
77+
let description :=
78+
match description with
79+
| [] => LString.s ""
80+
| description :: _ => description
81+
end in
82+
LString.s
7683
" <tr>
7784
<td><a href=""./" ++ name ++ LString.s "." ++ Version.version last_version ++ LString.s ".html"">" ++ LString.escape_html name ++ LString.s "</a></td>
7885
<td>" ++ LString.escape_html (Version.version last_version) ++ LString.s "</td>
79-
<td>" ++ LString.escape_html (Version.description last_version) ++ LString.s "</td>
86+
<td>" ++ LString.escape_html description ++ LString.s "</td>
8087
</tr>
8188
"
8289
end.
@@ -98,7 +105,7 @@ Module Index.
98105
</tr>
99106
</thead>
100107
<tbody>
101-
" ++ LString.join [] (List.map row packages) ++ LString.s
108+
" ++ LString.join (LString.s "") (List.map row packages) ++ LString.s
102109
" </tbody>
103110
</table>
104111
".

0 commit comments

Comments
 (0)