Skip to content

TCK: block/paragraph/paragraph-empty-lines-paragraph — 複数の空行で区切られたパラグラフの ASG 出力の不一致 #155

@aetos382

Description

@aetos382

TCK テスト

tests/block/paragraph/paragraph-empty-lines-paragraph

入力

This document has multiple paragraphs.


Paragraphs are separated by one or more empty lines.

(パラグラフ間に 2 行の空行)

期待される出力

{
  "name": "document",
  "type": "block",
  "blocks": [
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "This document has multiple paragraphs.",
          "location": [{ "line": 1, "col": 1 }, { "line": 1, "col": 38 }]
        }
      ],
      "location": [{ "line": 1, "col": 1 }, { "line": 1, "col": 38 }]
    },
    {
      "name": "paragraph",
      "type": "block",
      "inlines": [
        {
          "name": "text",
          "type": "string",
          "value": "Paragraphs are separated by one or more empty lines.",
          "location": [{ "line": 4, "col": 1 }, { "line": 4, "col": 52 }]
        }
      ],
      "location": [{ "line": 4, "col": 1 }, { "line": 4, "col": 52 }]
    }
  ],
  "location": [{ "line": 1, "col": 1 }, { "line": 4, "col": 52 }]
}

問題

2 行以上の空行(複数の空行)でパラグラフが区切られた場合に、2 つのパラグラフが正しく ASG に出力されていない可能性がある。#154(1 行の空行)と同様の問題で、空行の数が異なるケース。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtckTCK (Technology Compatibility Kit) test failure

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions