-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #840 from shufo/feature/add-option-indent-inner-html
- Loading branch information
Showing
12 changed files
with
142 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
__tests__/fixtures/argumentTest/indentInnerHtml/formatted.index.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<html> | ||
|
||
<head> | ||
@section('header') | ||
<title> | ||
foo | ||
</title> | ||
@endsection | ||
</head> | ||
|
||
<body> | ||
<button className="prettier-class" id="prettier-id" onClick={this.handleClick}> | ||
Click Here | ||
</button> | ||
</body> | ||
|
||
</html> |
14 changes: 14 additions & 0 deletions
14
__tests__/fixtures/argumentTest/indentInnerHtml/index.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<html> | ||
<head> | ||
@section('header') | ||
<title> | ||
foo | ||
</title> | ||
@endsection | ||
</head> | ||
<body> | ||
<button className="prettier-class" id="prettier-id" onClick={this.handleClick}> | ||
Click Here | ||
</button> | ||
</body> | ||
</html> |
3 changes: 3 additions & 0 deletions
3
__tests__/fixtures/runtimeConfig/indentInnerHtml/.bladeformatterrc.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"indentInnerHtml": true | ||
} |
17 changes: 17 additions & 0 deletions
17
__tests__/fixtures/runtimeConfig/indentInnerHtml/formatted.index.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<html> | ||
|
||
<head> | ||
@section('header') | ||
<title> | ||
foo | ||
</title> | ||
@endsection | ||
</head> | ||
|
||
<body> | ||
<button className="prettier-class" id="prettier-id" onClick={this.handleClick}> | ||
Click Here | ||
</button> | ||
</body> | ||
|
||
</html> |
14 changes: 14 additions & 0 deletions
14
__tests__/fixtures/runtimeConfig/indentInnerHtml/index.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<html> | ||
<head> | ||
@section('header') | ||
<title> | ||
foo | ||
</title> | ||
@endsection | ||
</head> | ||
<body> | ||
<button className="prettier-class" id="prettier-id" onClick={this.handleClick}> | ||
Click Here | ||
</button> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
------------------------------------options---------------------------------------- | ||
{ | ||
"indentInnerHtml": true | ||
} | ||
------------------------------------content---------------------------------------- | ||
<html> | ||
<head> | ||
@section('header') | ||
<title> | ||
foo | ||
</title> | ||
@endsection | ||
</head> | ||
<body> | ||
<button className="prettier-class" id="prettier-id" onClick={this.handleClick}> | ||
Click Here | ||
</button> | ||
</body> | ||
</html> | ||
------------------------------------expected---------------------------------------- | ||
<html> | ||
|
||
<head> | ||
@section('header') | ||
<title> | ||
foo | ||
</title> | ||
@endsection | ||
</head> | ||
|
||
<body> | ||
<button className="prettier-class" id="prettier-id" onClick={this.handleClick}> | ||
Click Here | ||
</button> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters