Parser doesn't support line breaks in between attributes:

Đã đóng
#347 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
tooling

Hướng nghiên cứu

Start by running the XML example from the issue and inspecting the parser's CST output for the line breaks between attributes. Trace the parser entry point that builds the CST and determine how whitespace is represented; done means those line breaks are available in the CST without losing the existing attribute information.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

For example this XML doesn't give any information in the CST about the linebreaks between the attributes:

<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     width="100%" height="100%" viewBox="0 0 110 60">

  <g id="group-1">
    <circle cx="80" cy="30" r="20" fill="cornflowerblue" />
    <text x="80" y="33" text-anchor="middle" font-size="10">1</text>
  </g>

  <g id="group-1">
    <rect x="10" y="10" width="40" height="40" fill="gold" />
    <text x="30" y="33" text-anchor="middle" font-size="10">2</text>
  </g>
</svg>
Ngôn ngữ chính
JavaScript
Star
59
Fork
24
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.