mdjnelson / moodle-mod_customcert

Enables the creation of dynamically generated certificates with complete customisation via the web browser.
https://moodle.org/plugins/mod_customcert
GNU General Public License v3.0
89 stars 157 forks source link

Line breaks problem #538

Open wagnerperin opened 1 year ago

wagnerperin commented 1 year ago

I have a custom course field where I put all the course syllabus. When I generate the certificate they don't break the line. I've tried using ordered and unordered lists, and I've also tried using a paragraph for each item and even a single paragraph with
and without html tags using \n. Nothing caused the custom field content to be rendered in the pdf with the line break.

mdjnelson commented 1 year ago

Is this a new element? Can you provide replication instructions please?

wagnerperin commented 1 year ago

Is this a new element? Can you provide replication instructions please?

Moodle 4.0.4+ 1) Go to course administration page and add a custom field "syllabus" as text area (/course/customfield.php). 2) Create a new course and define the syllabus content using multiple lines. 3) Create certificade inside the course and try to render the syllabus course field.

the generated certificate does not render line breaks at all.