If I add this bit of PHP to a Layout
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
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.
Code:
while ( $lastlevel < $thislevel ) { echo "<ul>\n"; $lastlevel++; }
Code:
while ( $lastlevel < $thislevel ) { echo "<ul> "; $lastlevel++; }
Comment