GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Corrupted table due to spanning and drawHorizontalLine · Issue #232 · gajus/table

Corrupted table due to spanning and drawHorizontalLine #232

New issue
Copy link
New issue
Copy link
Closed
Closed
Corrupted table due to spanning and drawHorizontalLine#232
Copy link
Labels
released

Description

@sorawee
sorawee
opened on Apr 27, 2025
Issue body actions

Consider the following code:

import { table } from "table";

console.log(
    table([
        ["abc", "abc", " "],
        [" ",   "abc", " "],
        [" ",   "abc", " "],
        [" ",   "abc", "abc"],
    ], 
    {
        spanningCells: [
            { row: 0, col: 0, rowSpan: 4 },
            { row: 0, col: 1, colSpan: 2 },
            { row: 1, col: 1, colSpan: 2 },
            { row: 2, col: 1, colSpan: 2 },
        ],
        columns: { 
            0: { width: 3 },
            1: { width: 3 },
            2: { width: 3 },
        },
        drawHorizontalLine: (row) => [0, 3, 4].includes(row)
    })
);

Actual output:

╔═════╤═══════════╗
║ abc │ abc       ║
║     │ abc       ║
║     │ abc       ║
║├─────┬─────╢
║     │ abc │ abc ║
╚═════╧═════╧═════╝

Expectation:

╔═════╤═══════════╗
║ abc │ abc       ║
║     │ abc       ║
║     │ abc       ║
║     ├─────┬─────╢
║     │ abc │ abc ║
╚═════╧═════╧═════╝

Activity

  1. gajus
    closed this as completedin 3e496f7on Nov 4, 2026
  2. github-actions commented on Nov 4, 2026

    @github-actions
    github-actionsBot
    on Nov 4, 2026 – with GitHub Actions
    More actions

    🎉 This issue has been resolved in version 6.9.4 🎉

    The release is available on:

    • npm package (@latest dist-tag)
    • GitHub release

    Your semantic-release bot 📦🚀

  3. github-actions
    added
    released
    on Nov 4, 2026
  4. gajus
    added a commit that references this issue on Nov 4, 2026

    fix: account for hidden horizontal lines when drawing borders through…

    This issue will close once commit 3e496f7 is merged into the 'master' branch.
    3e496f7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    released

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.