Issue with Description Column not Rendering on Separate Line
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- cli
調査の方向性
index.ts を開いて _renderInLine 関数を調べ、特に leadingWhitespace と targetTextWidth の条件を確認します。フィールド幅が最大の場合の説明文のレンダリング動作を検証し、その後、短い説明文に影響を与えずに型とデフォルトテキストが別の行に移ることを確認します。
索引モデルが issue の本文から書いたものです。
説明
I inadvertently created an argument description that turned out to be 37 characters long. When help is displayed, the description displays as follows:
--lts, -l Download 'Long Term Support' releases[boolean] [default: false]
Personally I think it would look better if the line had a line break inserted via the _renderInLine function in order to keep the description from running into the square bracket. If the description is 38 characters in length, it will render the type and default on a separate line.
A simple change to the _renderInLine function in index.ts, changing this code:
if (leadingWhitespace < targetTextWidth) {
to this:
if (leadingWhitespace < targetTextWidth + 1) {
allows the line to break if the description is the maximum width of the field.
- 主要言語
- JavaScript
- スター
- 395
- フォーク
- 44
- 平均マージ
- 6分
- マージ済み PR(30日)
- 3
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
yargs/cliui のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
task
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
似ている issue
-
bug confirmed issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
open-webui/open-webui#30750 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Mend: dependency security vulnerability untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100