#500 주석문 줄 앞 공백도 함께 제거

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4387 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2008-07-19 08:53:59 +00:00
parent 22248a0db8
commit 3dd492d991

View file

@ -116,7 +116,7 @@
$buff = preg_replace_callback('!<\!--@(.*?)-->!is', array($this, '_compileFuncToCode'), $buff);
// <!--// ~ --> 주석문 제거
$buff = preg_replace('!<\!--//(.*?)-->!is', '', $buff);
$buff = preg_replace('!(\n?)( *?)<\!--//(.*?)-->!is', '', $buff);
// import xml filter/ css/ js/ 언어파일 <!--%import("filename"[,optimized=true|false][,media="media"][,targetie="lt IE 6|IE 7|gte IE 8|..."])--> (media는 css에만 적용)
$buff = preg_replace_callback('!<\!--%import\(\"([^\"]*?)\"(,optimized\=(true|false))?(,media\=\"([^\"]*)\")?(,targetie=\"([^\"]*)\")?\)-->!is', array($this, '_compileImportCode'), $buff);