Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dwoo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Common
Dwoo
Commits
0bc81a41
Commit
0bc81a41
authored
Sep 09, 2008
by
Seldaek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Lines containing only comments and whitespace are now entirely removed
git-svn-id:
svn://dwoo.org/dwoo/trunk@176
0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent
c266d49f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Compiler.php
lib/Dwoo/Compiler.php
+4
-1
No files found.
lib/Dwoo/Compiler.php
View file @
0bc81a41
...
...
@@ -592,7 +592,10 @@ class Dwoo_Compiler implements Dwoo_ICompiler
// strips comments
if
(
strstr
(
$tpl
,
$this
->
ld
.
'*'
)
!==
false
)
{
$tpl
=
preg_replace
(
'/'
.
$this
->
ldr
.
'\*.*?\*'
.
$this
->
rdr
.
'/s'
,
''
,
$tpl
);
$tpl
=
preg_replace
(
'/(\r?\n)[\t ]*'
.
$this
->
ldr
.
'\*.*?\*'
.
$this
->
rdr
.
'[\t ]*\r?\n|'
.
$this
->
ldr
.
'\*.*?\*'
.
$this
->
rdr
.
'/s'
,
'$1'
,
$tpl
);
}
// strips php tags if required by the security policy
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment