diff --git a/CHANGELOG.md b/CHANGELOG.md index 638aae0..0cd8430 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ and `MarkupString.Pueblo`. The packages share one version and are released toget The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 2.24.2 — Unreleased + +### Fixed + +- **A table's heading rule matches its border**: unless a theme names its own, the line under a table's + headings is `─` (the default `LayoutTheme.Defaults.HeaderRule`), and `-` under an ASCII border or for an + ASCII reader. It was always `-`, so a table in a Unicode box had an ASCII rule under its headings. + ## 2.24.1 — Unreleased ### Fixed diff --git a/MarkupString.Tests/Layout/CompositionTests.cs b/MarkupString.Tests/Layout/CompositionTests.cs index 2036c28..e003359 100644 --- a/MarkupString.Tests/Layout/CompositionTests.cs +++ b/MarkupString.Tests/Layout/CompositionTests.cs @@ -215,7 +215,7 @@ public async Task Shaded_Text_ColoursTheTextAndLeavesTheBoxDrawingInItsTheme() var ansi = text.Render(MarkupFormat.Ansi, Registry); await Assert.That(ansi).Contains("\u001b[38;2;0;128;0m|"); - await Assert.That(ansi).Contains("\u001b[38;2;0;128;0m-"); + await Assert.That(ansi).Contains("\u001b[38;2;0;128;0m─"); await Assert.That(ansi).Contains("\u001b[38;2;255;0;0mA"); await Assert.That(ansi).Contains("\u001b[38;2;0;0;255md"); await Assert.That(text.Runs.SelectMany(run => run.Markups).OfType()).IsEmpty(); diff --git a/MarkupString.Tests/Layout/WidgetLayoutTests.cs b/MarkupString.Tests/Layout/WidgetLayoutTests.cs index 09366b0..cd41c9b 100644 --- a/MarkupString.Tests/Layout/WidgetLayoutTests.cs +++ b/MarkupString.Tests/Layout/WidgetLayoutTests.cs @@ -112,6 +112,16 @@ public async Task Grid_InHtml_IsAColumnedList() => await Assert.That(BlockLayout.Build(new Grid(Names), 32).Render(MarkupFormat.Html, Registry)) .Contains("