Topic: [Bug] The note system doesn't handle new lines properly.

Posted under Site Bug Reports & Feature Requests

Bug overview description.: The note system doesn't handle new lines in the way it should.

What part(s) of the site page(s) are affected?: Note system when viewing images.

What is the expected behavior?: The note system should handle new lines in notes properly. Therefore, the note typed should appear exactly as it was typed (with appropriate bbcode formatting properly converted of course.) Here is correct behaviour

"PRINCESS!

I'M AN ESPEON!"

This message should appear as-is when it is typed and then displayed when a user mouses over the note.

What actual behavior is given instead?:
example: http://puu.sh/re3Ua/6ba1088f37.png
"PRINCESS!

I'M AN ESPEON"

result: http://puu.sh/re4ej/d300501193.jpg
"PRINCESS!I'M AN ESPEON"

It omits a space and a new line, making notes that use this form of line look very messy.

Time of incident (if applicable).: Constant bug.

Can you reproduce the bug every time?: Yes.

What steps did you take to replicate this bug? Shown above.

Errors or other messages returned (if any). Other than incorrect notes, none.

A workaround for this is placing a space in the empty line to make the note behave properly.

Can this be fixed? It is small but incredibly annoying and makes mistakes in otherwise perfect notes v.v

Updated

Genjar

Former Staff

Yeah, I noticed the same yesterday.
And I'm pretty sure that it used to work, so maybe one of the recent patches broke it?

Edit: ...wait, no, it seems to work fine now. Not sure what's up with that.

Updated by anonymous

Might be related to the visual bug where spaces don't show up after not alphabetic symbols in your comments, where refreshing the page fixes it?

Updated by anonymous

Furrin_Gok said:
Might be related to the visual bug where spaces don't show up after not alphabetic symbols in your comments, where refreshing the page fixes it?

This was the first thing that came to mind when I saw this.

Updated by anonymous

Furrin_Gok said:
Might be related to the visual bug where spaces don't show up after not alphabetic symbols in your comments, where refreshing the page fixes it?

I went back and fixed a note on Love berry that was very old and had this problem, so I don't think this is the case. I think its not a display bug, but a formatting/parsing bug

Updated by anonymous

I've noticed it also seems to truncate any more than one space too (same for description field). I haven't tested tab characters, but it seems like it happens with all whitespace. But, it does seem to be a display bug, not an input parsing issue. You can test it how I just did a second ago. Add whatever whitespace to a note, save it, view it, and then open it back up for edit. You'll see that the popup display is wrong, but it does still have the whitespace when you go to edit it again.

Updated by anonymous

Here's your solution... Add white-space:pre to the css of the note-body divs. It fixes it. I thought possibly the html might've been being spat out wrong, but that doesn't seem to be the case.

Updated by anonymous

Better solution: Stop clumping notes together. There's no harm in having a new note for every separate bit of dialogue. It may just me, but I don't like seeing three bubbles, even when they're clumped together, getting a shared note.

Updated by anonymous

Yeah, agreed about separating different bubbles properly, but still, how is a workaround a better solution than an easy code fix? Sure, it's better to separate unrelated adjacent lines, but that doesn't mean it should be left malfunctioning on purpose. Sometimes you want a line break or a few extra spaces to give some visual separation for an explanatory note or something.

Updated by anonymous

Furrin_Gok said:
Better solution: Stop clumping notes together. There's no harm in having a new note for every separate bit of dialogue. It may just me, but I don't like seeing three bubbles, even when they're clumped together, getting a shared note.

notnobody said:
Yeah, agreed about separating different bubbles properly, but still, how is a workaround a better solution than an easy code fix? Sure, it's better to separate unrelated adjacent lines, but that doesn't mean it should be left malfunctioning on purpose. Sometimes you want a line break or a few extra spaces to give some visual separation for an explanatory note or something.

Pretty much what I was gonna say. Sure, you can separate the two speech bubbles in the note, BUT, that makes a little bit of extra work for us, as the current way that we have of copying translation notes over is slow enough, yet it is also the fastest way we can do it. It would be better if the problem was just fixed instead of using workarounds that waste more time, like adding a " " or making new notes.

Updated by anonymous

  • 1