$LTS is coming out as literal '<'

Đang mở
#1,378 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

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
50/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
perl
Lĩnh vực
backend

Hướng nghiên cứu

Start with the $LTS and $GTS definitions in the PGbasicmacros macro file, then the MWE in the issue, which loads PGstandard.pl. Trace where the rendered text is escaped or converted before output to find the step that turns &lt; into a literal <. Done means ${LTS}a,b,c${GTS} renders as &lt;a,b,c&gt; and displays correctly in the browser. The issue has no assignee or linked pull request, and the thread has been silent for about 239 days.

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

Mô tả

In PGbasicmacros, $LTS is defined to output &lt; in HTML. Good.

And yet with the following MWE:

DOCUMENT();
loadMacros("PGstandard.pl");

BEGIN_TEXT
Write a vector like this: <a, b, c>
$BR
Write a vector like this: ${LTS}a,b,c${GTS}
END_TEXT

ENDDOCUMENT();

The places where $LTS and $GTS are used are coming out as literal < and >. The web browser then tries to parse the "tag" <a,b,c> and the user sees nothing there. So I think there is some translation step that is improperly converting &lt; to < before the rendered problem is sent out.

Ngôn ngữ chính
Perl
Star
48
Fork
78
Merge trung bình
5 ngày 13 giờ
Pull request đã merge (30 ngày)
9

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 khác của openwebwork/pg

Tất cả issue của openwebwork/pg

Issue tương tự

Thêm issue về Perl

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.