Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Glaice

/idgames/ not parsing page breaks?

Recommended Posts

Here's an example., I hit Enter twice to start a new sentence underneath the review section of mine but in the review section below it shows everything in one giant runaway sentence.

Why is it doing this?

Share this post


Link to post

I assume it's done so that the reviews take less space. I guess paragraphs aren't that important when it's just a few sentences.

Share this post


Link to post

Simple coding and the nature of HTML are the answer.

Looking at the Page Source for the page that Glaice linked, I'm seeing that the whitespace included in reviews is indeed still there:

Spoiler

<strong>Reviews:</strong><br><table class="review" cellspacing=0><tr class="separator"></tr><tr><td class="newreview_name_reg">Glaice<br><img src=images/star.gif alt=""><img src=images/star.gif alt=""><img src=images/star.gif alt=""><img src=images/emptystar.gif alt=""><img src=images/emptystar.gif alt=""></td><td class="newreview_text_reg">Interesting concept, decent gameplay and map structure but a lot of the rooms were on the empty  side. Good for some nostalgia moments of a 1995 mini map set. Playable but not terrible nor too good.

E1M5 might be unfinished or where the mapping eventually ended. Is there a version 1.0 of this anywhere?</td><td class="killreview"><a href="admin/killreview.php?reviewnum=187094" target="another" rel="nofollow">x</a></td></tr><tr class="separator"></tr><tr><td class="newreview_name_anon">Anonymous<br><img src=images/star.gif alt=""><img src=images/star.gif alt=""><img src=images/star.gif alt=""><img src=images/star.gif alt=""><img src=images/emptystar.gif alt=""></td><td class="newreview_text_anon">I worked with Jean-Serge on OTTAWAU, but I was just the "lighting guy". I figured out shading interpolation and effects, while keeping the level consistent and interesting (and scary).

We used UUCP and FTP to share our WAD changes, on a server hosted by the real O.U. over a couple of months to get the design finished.

Working on the level was challenging and loads of fun and a bit nerve-wracking (Jean-Serge had a lot of brilliant levels and was well-known, I was NOT).

I loved every second of it.</td><td class="killreview"><a href="admin/killreview.php?reviewnum=68849" target="another" rel="nofollow">x</a></td></tr></table><br>

The problem is that HTML by default collapses all instances of whitespace into a single space per occurrence (in other words, one space, forty spaces, or space-enter-tab-tab-space-space-enter, etc., all render as a single space in vanilla HTML), unless tags (e.g., paragraph or line break tags) are inserted or CSS is used to alter this behaviour.

The reviews system appears to do neither, simply spitting the review back out as typed without taking any CSS measures to retain whitespace, so the reviews all collapse into single paragraphs. I guess paragraphs aren't that important when it's usually just a few sentences - it's just that they're not important enough to specifically code for, rather than important enough to save space on :)

Share this post


Link to post

With a limit of 512 characters, do you really need multiple paragraphs?











































































































































Also, do you really think converting line breaks to <br> would be a good idea?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×