Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

My Last Report

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
baovv
Smarty n00b


Joined: 16 Jul 2014
Posts: 1

PostPosted: Wed Jul 16, 2014 6:14 pm    Post subject: My Last Report Reply with quote

My Last Report
Hi, I encountered this problem during migration from using smarty2 to smarty3. Please see my code and problem below...

Here is the template code fragment:
Code:Friv 200 Games
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "XHTML ">


Here is the smarty generated cache code fragment for the template above:
Code:
<?php echo '<?xml';?> version="1.0" encoding="utf-8"<?php echo '?>';?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "VD XHTML ">


Here is the source code view of the actual page in the browser:
Code:
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://friv200game.org/">


Noticed that the line break between two lines is missing.


I have tried all the possible configurations and none of them will solve this problem.

But if I add a space after the first line in the cache file like this:
Code:
<?php echo '<?xml';?> version="1.0" encoding="utf-8"<?php echo '?>';?>[SPACE]
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

The line break will be normally displayed.

I guess for lines end with a php ending tag "?>" that smarty would not output the line break after and that do make sense.

But for this case the line break is needed.

Just wondering if there is any way of fixing this problem except use {literal} tag to surround the "?>"......
Apr 12, 2012 Project Member #1 Uwe.\\//
Thanks for your input.

This bug is now fixed in the SVN trunk version and will later be included in 3.1.9
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Wed Jul 16, 2014 6:45 pm    Post subject: Reply with quote

This bug was fixed long time ago. So what do you want to say with this post?
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP