RolePlay onLine RPoL Logo

, welcome to RPoL Development

07:18, 20th April 2024 (GMT+0)

Pre tags in quote tags erase later line breaks.

Posted by Genghis the Hutt
Genghis the Hutt
member, 2267 posts
Just an average guy :)
Mon 28 Jul 2014
at 06:27
  • msg #1

Pre tags in quote tags erase later line breaks

So I wrote something with line breaks.
Short lines, with a line break after each line.
Yadda, yadda.  Hmm, hmm.
Then
something here
here   here      here
and       here
So I wrote something with line breaks.
Short lines, with a line break after each line.
Yadda, yadda.  Hmm, hmm.
Yup, that paragraph was exactly the same.
quote:
something here
here   here      here
and       here
So I wrote something with line breaks. Short lines, with a line break after each line.
Yadda, yadda.  Hmm, hmm.
This paragraph is different.


Quote this to see the line spaces around this line, which is its own paragraph.



And there's a few line spaces, but they'll all be ignored.  Something about the combination of quote and pre tags makes the ending of the pre tag sort of become more permanent than normal and line breaks are ignored.  This effect is absent when tt tags are used in the quote tags instead of pre tags.
This message was last edited by the user at 06:28, Mon 28 July 2014.
cruinne
moderator, 6460 posts
busy crossing the i's
and dotting the t's
Mon 28 Jul 2014
at 15:58

Re: Pre tags in quote tags erase later line breaks

Hi Genghis,

I have some questions as I think this is a ... bug report?

I'm not sure what you mean by, "makes the ending of the pre tag sort of become more permanent than normal".  Is it "less permanent" in other contexts, and, if so, what is your definition of "permanent"?

When you say, "line breaks are ignored", what are you seeing?  I'm seeing the line breaks where they were inserted here on Windows 8/Chrome 36 (desktop).

Finally: "This effect is absent when tt tags are used in the quote tags instead of pre tags."  <tt> is a character-level element and <pre> is a block-level element; one is inline and the other is a block, so they will behave differently. Beyond that difference, please explain what's happening that you believe should not happen?
steelsmiter
member, 1104 posts
GURPS, FFd6, Pathfinder
NO FREEFORM!
Mon 28 Jul 2014
at 16:19
  • msg #3

Re: Pre tags in quote tags erase later line breaks

cruinne:
I'm seeing the line breaks where they were inserted here on Windows 8/Chrome 36 (desktop).

I'm seeing them when they're inserted here on a Samsung Tablet 2 10.1 android OS.
DarkLightHitomi
member, 622 posts
Mon 28 Jul 2014
at 16:31
  • msg #4

Re: Pre tags in quote tags erase later line breaks

I see the problem he is talking about, though I think his illustration is suboptimal.

I am on windows 8 (or 8.1, not sure) and using firefox.

This is what I see is happening

Blue is what it should look like, red is what it does look like.

Yup, that paragraph was exactly the same.
quote:
something here
here   here      here
and       here


So I wrote something with line breaks. Short lines, with a line break after each line. Yadda, yadda. Hmm, hmm. This paragraph is different.


Quote this to see the line spaces around this line, which is its own paragraph.



And there's a few line spaces, but they'll all be ignored.



Yup, that paragraph was exactly the same.
quote:
something here
here   here      here
and       here


So I wrote something with line breaks. Short lines, with a line break after each line. Yadda, yadda. Hmm, hmm. This paragraph is different. Quote this to see the line spaces around this line, which is its own paragraph. And there's a few line spaces, but they'll all be ignored.



It seems that by including the "pre" tags (preformatted text?) on text inside a quote is causing the problem.
cruinne
moderator, 6461 posts
busy crossing the i's
and dotting the t's
Mon 28 Jul 2014
at 16:37

Re: Pre tags in quote tags erase later line breaks

I don't see a difference in your red or blue, DarkLightHitomi.  We need either descriptions (use your words! heehee) or screen caps.  It also looks the same in Firefox 31 here.
This message was last edited by the user at 16:38, Mon 28 July 2014.
steelsmiter
member, 1105 posts
GURPS, FFd6, Pathfinder
NO FREEFORM!
Mon 28 Jul 2014
at 16:49
  • msg #6

Re: Pre tags in quote tags erase later line breaks

I get it now. There are empty lines in the blue, and no empty lines in the red, and that seems to be caused by pre tags.
cruinne
moderator, 6462 posts
busy crossing the i's
and dotting the t's
Mon 28 Jul 2014
at 17:04

Re: Pre tags in quote tags erase later line breaks

In reply to steelsmiter (msg # 6):

Yes, there's an extra line above and below the pre-formatted tab, which is standard for it.  I'm trying to figure out what else is potentially wrong.  :-)
DarkLightHitomi
member, 623 posts
Mon 28 Jul 2014
at 18:56
  • msg #8

Re: Pre tags in quote tags erase later line breaks

steelsmiter is correct. It isn't any lettering or words that are off but rather it is the whitespace that is off.
otghand
member, 299 posts
Mon 28 Jul 2014
at 19:21
  • msg #9

Re: Pre tags in quote tags erase later line breaks

I can see the difference.
Genghis the Hutt
member, 2269 posts
Just an average guy :)
Tue 29 Jul 2014
at 02:15
  • msg #10

Re: Pre tags in quote tags erase later line breaks

cruinne:
I think this is a ... bug report?
Yes.  It's exactly what I reported, if pre tags are placed within quote tags, then later line breaks in the message are erased (ignored by the server).  Compare what is shown on the screen with what is shown in a quote tag.  I copy/paste the same sets of lines with some commentary.
quote:
When you say, "line breaks are ignored", what are you seeing?
I'll attach a link to an image.
I actually got a moderator warning in... a forum, which I'm not sure I can mention here or link to.  Anyway, I had a moderator warning about evading code inserted to prevent newlines, so perhaps this "bug" is supposed to be here, and just isn't displaying properly before quotes with pre tags.  Here's a screen cap of what I'm seeing:
http://i9.photobucket.com/albu...rpol_zpsa25f59b8.png
This message was last edited by the user at 02:17, Tue 29 July 2014.
jase
admin, 3379 posts
Cogito, ergo procuro.
Carpe stultus!
Tue 29 Jul 2014
at 03:56
  • msg #11

Re: Pre tags in quote tags erase later line breaks

Found the issue, will be fixed in the next version, thanks.

In the interim, put something in-between the closing pre and the closing quote.
cruinne
moderator, 6463 posts
busy crossing the i's
and dotting the t's
Tue 29 Jul 2014
at 17:32

Re: Pre tags in quote tags erase later line breaks

Genghis the Hutt:
Anyway, I had a moderator warning about evading code inserted to prevent newlines,

Just to clear that up -- it was about trying to work around our code that prevents too many blank lines by using periods instead of blank lines (one period per line to space a post out vertically).  For example, if I normally insert a bunch of blank lines you'll see RPoL condense and report it.

[5 blank lines suppressed]

Like so.
This message was last edited by the user at 17:33, Tue 29 July 2014.
Genghis the Hutt
member, 2272 posts
Just an average guy :)
Wed 30 Jul 2014
at 06:45
  • msg #13

Re: Pre tags in quote tags erase later line breaks

Ah.  Sorry, the periods was probably a holdout from a bad habit acquired before RPoL had spoiler tags, when people would complain because they read too fast and already started to read a spoiler before they realized it was a spoiler, and so a spoiler needed to be put off screen where they couldn't see it unless they really wanted to scroll down and read it.  Or something like that -- that's what I thought the rule was.

Anyway, I'm digressing from the main point -- I'm happy to have contributed to making RPoL better in the next release! :)
Sign In