Skip to content

Preserve newlines in proofread comments#2128

Open
ZhangTao08 wants to merge 3 commits into
GibbonEdu:v31.0.00from
ZhangTao08:v31.0.00
Open

Preserve newlines in proofread comments#2128
ZhangTao08 wants to merge 3 commits into
GibbonEdu:v31.0.00from
ZhangTao08:v31.0.00

Conversation

@ZhangTao08

Copy link
Copy Markdown
Contributor

Use nl2br when rendering proofread comments so line breaks are preserved in both PHP and Twig outputs. Also apply htmlPrep() to sanitize content before converting newlines. Small UI tweak: change sm:leading-5 to sm:leading-6 for the filter select. Added a console.log for the textarea selector to aid debugging.

When building per-person archive entries, try an identifier-based lookup if no recent archive is found (providing backward compatibility for archives linked by identifier/name). Rename the mapped variable for clarity and ensure the closure captures the outer $report. Also avoid rendering an empty status tag by checking that archive.status is non-empty before outputting the status badge.
Use nl2br when rendering proofread comments so line breaks are preserved in both PHP and Twig outputs. Also apply htmlPrep() to sanitize content before converting newlines. Small UI tweak: change sm:leading-5 to sm:leading-6 for the filter select. Added a console.log for the textarea selector to aid debugging.

Files modified: modules/Reports/reporting_proofread.php, modules/Reports/templates/ui/writingStudentOverview.twig.html.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant