masukomi / masukomi/Prettier-Table

incorrect handling of multiline titles

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Raku
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

It's probably just counting total characters (including the `\n` or `\r\n` characters) instead of breaking it down by line and finding the longest one, without invisible characters.

Tackle this after #1 because we'll need to use whatever new method we make to strip invisible characters.

see below

CleanShot 2022-11-06 at 18 00 25@2x

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing issue #1, since this issue depends on the method introduced there. Use the attached screenshot to understand the multiline-title failure, then verify that title width is based on the longest visible line rather than newline characters. Done means multiline titles render with correct column widths and invisible characters are excluded.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.