Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Keep the message on the screen

Author: Tim Mirabile

Date: 17:41:06 04/02/99

Go up one level in this thread


On April 02, 1999 at 10:39:57, Sarah Bird wrote:

>Yesterday I was trying to download games from
>http://www.chesslab.com/PositionSearch.html
>And when I cut and pasted the pgn to notepad I just got one long line of text.
>Is this due to column width, font type, characters.
>Any help.....thx.
>UltraB

Ah, this is something different.  It has to do with the way web browsers display
text.  Under normal conditions, all strings of "whitespace" characters (spaces,
tabs, linefeeds) are reduced to a single space character.  Then the browser
wraps the text to its screen width.  So when you copy PGN from the browser to
the windows clipboard, there are no linefeed characters at the end of each line
as shown in the browser.

The way around this (for the webmaster) is to surround the entire PGN game in a
<pre></pre> tag pair in the HTML file (or script output).  This will force the
browser to treat the text between those tags as preformatted text, and display
it as written using in a fixed width font.  But this runs into the same problem
above - some readers will wind up with horizontal scroll bars.

Not sure how you would get around this yourself unless you just put in the
linebreaks yourself once you get into notepad.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.