Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
hyped about 3.2

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Kirill
Smarty Rookie


Joined: 10 Jan 2010
Posts: 8
Location: Estonia

PostPosted: Sun Mar 18, 2012 6:10 pm    Post subject: hyped about 3.2 Reply with quote

Hey mohrt & co. Just wanted to commend you guys on the fantastic job. We've been having issues with whitespace, with this fella popping its ugly head here and there.

So, I just installed the 3.2 dev version and it's whitespace issue free! I dunno if my complaining is to blame here but thanks guys!
Back to top
View user's profile Send private message
rodneyrehm
Administrator


Joined: 30 Mar 2007
Posts: 698
Location: Germany, border to Switzerland

PostPosted: Sun Mar 18, 2012 6:36 pm    Post subject: Reply with quote

Please note that the 3.2 dev is a pure playground. It does not underly the rules of the trunk in the terms of always reflecting a working state. We regularly commit broken features that may very well break Smarty completely.

We do not recommend using the 3.2dev branch for production. Not even for testing, at this point!

That said, what are the whitespace issues you have been experiencing?
_________________
Twitter
Back to top
View user's profile Send private message Visit poster's website
Kirill
Smarty Rookie


Joined: 10 Jan 2010
Posts: 8
Location: Estonia

PostPosted: Sun Mar 18, 2012 6:51 pm    Post subject: Reply with quote

rodneyrehm wrote:
Please note that the 3.2 dev is a pure playground. It does not underly the rules of the trunk in the terms of always reflecting a working state. We regularly commit broken features that may very well break Smarty completely.

We do not recommend using the 3.2dev branch for production. Not even for testing, at this point!

That said, what are the whitespace issues you have been experiencing?
Yeah, I know. But so far, so good.

The whitespace issue was that smarty was adding this character http://www.fileformat.info/info/unicode/char/feff/index.htm to random places. I don't know which one of those specifically, but for instance chrome identified it as & # 65279 ; (can't write it all together, phpBB interprets it as a space) while Firefox's firebug displayed a whitespace tab.

usually it was instead of nocache tag in the resulting markup

We're not really using advanced smarty commands, nor have any custom plugins. So far it has been holding up. Any idea when it will be in beta?
Back to top
View user's profile Send private message
rodneyrehm
Administrator


Joined: 30 Mar 2007
Posts: 698
Location: Germany, border to Switzerland

PostPosted: Sun Mar 18, 2012 6:54 pm    Post subject: Reply with quote

Maybe Uwe can shed some light on this. I for one have no clue how this should not have worked in 3.1.
_________________
Twitter
Back to top
View user's profile Send private message Visit poster's website
Kirill
Smarty Rookie


Joined: 10 Jan 2010
Posts: 8
Location: Estonia

PostPosted: Sun Mar 18, 2012 7:07 pm    Post subject: Reply with quote

rodneyrehm wrote:
Maybe Uwe can shed some light on this. I for one have no clue how this should not have worked in 3.1.
I can switch back for testing purposes to see where it happens. I can do it tomorrow
Back to top
View user's profile Send private message
U.Tews
Administrator


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

PostPosted: Sun Mar 18, 2012 7:30 pm    Post subject: Reply with quote

Note that Smarty 2 and Smarty 3 did require that template source files are stored without BOM's. Otherwise you could see the BOM's in the output.

Starting with Smarty 3.2 we will remove BOM's from template source.

As Rodney said the 3.2.DEV branch is currently a playground and there is no guarantee that it is in working condition.
Back to top
View user's profile Send private message
Kirill
Smarty Rookie


Joined: 10 Jan 2010
Posts: 8
Location: Estonia

PostPosted: Sun Mar 18, 2012 7:31 pm    Post subject: Reply with quote

U.Tews wrote:
Note that Smarty 2 and Smarty 3 did require that template source files are stored without BOM's. Otherwise you could see the BOM's in the output.

Starting with Smarty 3.2 we will remove BOM's from template source.

As Rodney said the 3.2.DEV branch is currently a playground and there is no guarantee that it is in working condition.
I'll check it out, maybe I do have BOM here and there
Back to top
View user's profile Send private message
Kirill
Smarty Rookie


Joined: 10 Jan 2010
Posts: 8
Location: Estonia

PostPosted: Sun Mar 18, 2012 8:27 pm    Post subject: Reply with quote

looks like it was BOM all along.

well-well, seems like the almighty christian-made UltraEdit is not so good with handling BOM. Thanks for the tips guys, looks like I got the whitespace issue sorted out and working with 3.1.8 too. I'll be moving back to the stable version.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General 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