From 7cf6650663368a535ed7363721f2e3d49a2a6c92 Mon Sep 17 00:00:00 2001 From: expikr <77922942+expikr@users.noreply.github.com> Date: Sat, 8 Jun 2024 12:37:07 -0700 Subject: [PATCH] autodoc: fix misaligned table header when alignment is default (#20220) --- doc/langref.html.in | 2 +- lib/docs/index.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/langref.html.in b/doc/langref.html.in index 02c9130845..42aebdcac2 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -2087,7 +2087,7 @@ or A slice is a pointer and a length. The difference between an array and a slice is that the array's length is part of the type and known at compile-time, whereas the slice's length is known at runtime. - Both can be accessed with the `len` field. + Both can be accessed with the {#syntax#}len{#endsyntax#} field.

{#code|test_basic_slices.zig#} diff --git a/lib/docs/index.html b/lib/docs/index.html index 22380138cc..be346c6176 100644 --- a/lib/docs/index.html +++ b/lib/docs/index.html @@ -167,7 +167,8 @@ margin-top: 0.5em; } - td { + td, th { + text-align: unset; vertical-align: top; margin: 0; padding: 0.5em;