CuteNews

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> [FAQ] Why does my post have lots of empty space in it?, Whitespace
eruin
post Jul 17 2004, 04:47 AM
Post #1


Che
***

Group: Support
Posts: 1,011
Joined: 3-July 04
From: Socialist snowboarder / designer located in Bergen, Norway
Member No.: 29



[EDIT]
this post was for CN versions that not have wysiwygs.
If you don't use the wysiwyg this post might still be usefull.

A common problem for new users is when they post an item that has both plain text and html. Cutenews works in a way that converts all new lines in the textbox where you enter news to <br /> tags.

Say you have the following post:

QUOTE
Today I went out fishing, here's some photos from the trip:

<table>
<tr><td>image1</td><td>image2</td></tr>
<tr><td>image3</td><td>image4</td></tr>
</table>

Nice photos, huh?


By default, this will be the code cutenews outputs when showing the news:

QUOTE
Today I went out fishing, here's some photos from the trip:<br />
<br />
<table><br />
<tr><td>image1</td><td>image2</td></tr><br />
<tr><td>image3</td><td>image4</td></tr><br />
</table><br />
<br />
Nice photos, huh?


Now, that'd add lots of excess newlines you didn't intend to have in your post. To solve this problem, you should make sure you do the following when using using html in your news: Click the [options] link and make sure the checkbox about "convert newlines to <br />" isn't checked while "use html in this post is checked".

That should remove all the excess whitespace, but you'll now also have to place the non-html text inside <p> tags, ie "<p>Today I went out fishing, here's some photos from the trip:</p>"
Go to the top of the page
 
+Quote Post
FUNimations
post Jul 27 2008, 05:57 PM
Post #2


CuteNews Support Crew Pimp
***

Group: Support
Posts: 16,512
Joined: 28-August 05
From: Belgium
Member No.: 5,662



This concerns when using the wysiwyg.
Now be aware that the wysiwyg is javascript and that javascript is parsed (or in normal words: reading the code and giving a nice output on your screen)
by the browser so don't ask questions like "FF doesn't have spaces, but IE does". Because that's due to the browser. There's nothing we can do about this.

Some additional clarification:
When pressing enter in IE, the javascript will make new lines by making paragraphs <p></p>
While in FF it'll use <br>
obviously those 2 aren't the same tags and thus they do create a different look.
You can always use css to alter the defination for space of <p> of <br>


--------------------

General FAQ
Spam Protection In Cutenews
Comments get deleted
_______________________
<< If you appreciate my help
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 30th September 2014 - 10:07 AM