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

[OT] Übertragungsproblem tpl-files mit CVS

 
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 -> Language: German
View previous topic :: View next topic  
Author Message
M.
Smarty n00b


Joined: 16 Jun 2004
Posts: 3

PostPosted: Wed Jun 16, 2004 2:33 pm    Post subject: [OT] Übertragungsproblem tpl-files mit CVS Reply with quote

Hallo,

ich habe ein kleines Problem, wenn ich tpl-dateien per CVS übertrage:

bei allen Dateien mit Endung tpl, die ich vom CVS-Server zu mir hole (WindowsXP), wird nach jeder Zeile Text eine Leerzeile eingefügt.

Seltsamerweise werden diese Leerzeichen nur bei dem stinknormalen notepad ohne diese Leerzeilen angezeigt, bei allen anderen Editoren, die cih getestet hatte(Weaverslave,Textpad, selbst M$ Word) waren sie drin.

übertrage ich diese Dateien als binärdaten, werden die Leerzeilen nicht angezeigt.

Gibt es da für CVS besondere Einstellungen?

Für Tipps oder Anregungen wäre ich sehr dankbar.
Back to top
View user's profile Send private message
Duncan
Smarty Pro


Joined: 16 Dec 2003
Posts: 166

PostPosted: Thu Jun 17, 2004 1:32 am    Post subject: Reply with quote

Das liegt garrantiert an dem Windows Linefeed \r\n was unter Linux als Doppel "Enter" interpretiert wird, afaik.
Ich wuerde ueberpruefen, ob Dein php Editor verschiedene Formate unterstuetzt, z.B.: bei Zend Studio kann man das "Enter" Format definieren.

Bisher habe ich dieses Problem schon mit notepad, Dreamweaver & FP festgestellt - der Code sieht dann einfach nur uebelst aus.

Ein paar Infos dazu hier in den User Kommentaren: http://ca2.php.net/nl2br
Back to top
View user's profile Send private message
M.
Smarty n00b


Joined: 16 Jun 2004
Posts: 3

PostPosted: Thu Jun 17, 2004 8:54 am    Post subject: Reply with quote

Das dachte ich zuerst auch, aber

1. mein Editor kann mit den Zeilenumbrüchen von Unix umgehen
2. ich habe es auch z.B. mit Proton getestet(dort kann man explizit das Zeilenumbruchverfahren auswählen) -> keine Änderung an den Leerzeilen.

Was mich halz so iritirrt, ist dass es nur bei den Dateien mit tpl-Endung auftritt, nicht aber bei php-Dateien oder htm*. Diese werden korrekt angezeigt.

Edit:

Das Problem habe ich jetzt weiter eingeschränkt:
Die tpl-Dateien haben Netscape-Zeilenumbruch.

Weiß jemand was dort als Zeilenumbruchformat benutzt wird oder ob man im CVS die Standardübertragung für bestimmte Endungen(in diesem Fall tpl) festlegen kann?
Back to top
View user's profile Send private message
M.
Smarty n00b


Joined: 16 Jun 2004
Posts: 3

PostPosted: Fri Jun 18, 2004 2:15 pm    Post subject: [solved] Reply with quote

Mittlerweile habe ich das Problem gelöst:

Wenn ich die tpl-Dateien explizit mit Unix-Zeilenumbruch speichere, werden sie auch ohne die Leerzeilen wieder übertragen. Was bei allen anderen Dateien(php,htm,html usw.) auch ohne die explizite Speicherung geklappt hat.
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 -> Language: German 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