Announcement

Collapse
No announcement yet.

Buggete: Design Export / Import altering source code.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Buggete: Design Export / Import altering source code.

    If I add this bit of PHP to a Layout
    Code:
    	while ( $lastlevel < $thislevel ) 
    		{
    		echo "<ul>\n";
    		$lastlevel++;
    		}
    and then use it a part of a Deploy Partial Site Design and the Import that snapshot into another site the Layout item now contains
    Code:
    	while ( $lastlevel < $thislevel ) 
    		{
    		echo "<ul>
    ";
    		$lastlevel++;
    		}
    So the string entity \n has been replaced by a physical newline. Luckily, in the case above, it doesn't break anything (since PHP strings can contain multiple lines) but it is very confusing. I can imagine places (regular expressions perhaps), where the \n is important as-is.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    #2
    Many thanks Norman. I'll report this to the team.

    Comment

    Working...
    X