sam98uele / DB2Project_EJB

3 stars 0 forks source link

Showing unprecise: #19

Closed alessandriniluca closed 3 years ago

alessandriniluca commented 3 years ago

If the user put in the marketing answer some "enters" (a capo), while displaying them they are shown as \r\n, instead of an actual enter. Should we worry about that, or in this "beta release" we can leave as it is for now? For example: I entered these "a capo":

Age: 32
Sex: none
Expertise level: medium

And it was displayed as shown in figure: image

sam98uele commented 3 years ago

I've made a sort of fix. If for you it's ok we can leave it as I've done.

<p style="text-align: center" th:text = "'Answer: ' + ${q.getAnswer().replaceAll('\\x5c\\x72\\x5c\\x6e', ' ')}"></p>

So for example:

Ciao\r\nCome\r\nStai?.\r\n

Becomes

Ciao Come Stai?.

All on a single row!

I cannot insert a "<___br___>". If someone of you can ok. Else we can leave it as it is.

alessandriniluca commented 3 years ago

I think that's already good. Maybe leave this issue opened, if we will have more time, I'll have a look at the end of all the project, but I think this shoul be already good!

mattia1p commented 3 years ago

Teams style is the way ahahahah

Il gio 1 apr 2021, 15:22 Luca Alessandrini @.***> ha scritto:

I think that's already good. Maybe leave this issue opened, if we will have more time, I'll have a look at the end of all the project, but I think this shoul be already good!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sam98uele/DB2Project_EJB/issues/19#issuecomment-811903840, or unsubscribe https://github.com/notifications/unsubscribe-auth/AICHPHMT6KYBHSBIOV7DJVLTGRXP7ANCNFSM4ZX5PJYQ .

sam98uele commented 3 years ago

*forms @mattia1p

mattia1p commented 3 years ago

Right

alessandriniluca commented 3 years ago

And remember our program is free. For forms you have to pay, and they don't inser
ahahaha