georgeyjm / class-surveyor

My IB Computer Science IA project.
https://surveyor.georgeyu.cn
0 stars 0 forks source link

Line breaks in feedbacks not preserved when displayed #3

Open georgeyjm opened 4 years ago

georgeyjm commented 4 years ago

This is caused by the removal of line breaks by Jinja when rendering a template.

After some searching, there doesn’t seem to be a satisfying solution. Hence I will leave this issue open.

georgeyjm commented 4 years ago

A possible solution is to convert from SSR (server-side rendering) to AJAX with RESTful APIs to render in client-side.

This also brings the benefit of being able to cache certain pages because pre-rendered pages are the same for all users.

But as this is too much work, I will postpone the implementation of this solution.