Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
selectric
Regular
Regular



Joined: Aug 06, 2008
Posts: 65

PostPosted: Fri May 15, 2009 9:44 am Reply with quote

Hello,
When I code basic (no php, no sql) XHTML websites, load them, browse the web page, view source code, the code is all nice and neat like how I wrote it.

With PHP-Nuke or RavenNuke, I can write it the same kinda way, but when I browse the web page and view the source code, it's basically turned into one giant chunk of code.

Can anyone explain this? How can it be fixed? Does it have anything to do with \n" ?

What is \n ?

Thank you!

Code:
<!DOCTYPE html

PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><link rel="icon" href="favicon.ico" type="image/x-icon" /><link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /><link rel="shortcut icon" href="favicon.ico" /><title>Website Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /><meta http-equiv="Content-Script-Type" content="text/javascript" /><meta name="revisit-after" content="1 DAYS" /><meta name="author" content="Author" /><meta name="robots" content="noarchive" /><link rel='stylesheet' href='themes/DEFAULT/style/style2.css' type='text/css' />


Code:
<!DOCTYPE html

PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /><link rel="shortcut icon" href="favicon.ico" />
<title>Website Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta name="revisit-after" content="1 DAYS" />
<meta name="author" content="author" />
<meta name="robots" content="noarchive" />
<link rel='stylesheet' href='themes/DEFAULT/style/style2.css' type='text/css' />
 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Fri May 15, 2009 9:50 am Reply with quote

I can't see \n anywhere, I think I am going blind. Shocked

When you view source does it bring it up in notepad, because I have noticed it before in notepad. If I view it using the HTML Tidy addon for Firefox I don't have the problem. So I have put it down to a quirk of notepad.
 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Fri May 15, 2009 10:53 am Reply with quote

RavenNuke uses the KSES XHTML filter and i believe it strips away some tags and changes some to insure XHTML compliance and to keep harmful code from being introduced. I may be wrong, but that could be the difference you are seeing.

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Fri May 15, 2009 12:42 pm Reply with quote

\n is just a line break in the code (not the document)
adding it at the end of a line may produce the results you were looking for
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©