forked from posthtml/posthtml-extend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove whitespace at the start/end of the first/last text node. Details: posthtml/posthtml-include#19
- Loading branch information
1 parent
5f483a6
commit 52155fe
Showing
6 changed files
with
106 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
No line breaks <span>are inserted,</span> because "block" and "extend" are control tags... <i>...which can't dictate vertical indentation.</i> | ||
|
||
I am indented according to the file which should control it — base.html. | ||
|
||
|
||
|
||
<b>^^^ 3 empty lines above me (and no empty lines below), as per base.html.</b> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<block name="a"></block> <block name="b"></block> <block name="c"></block> <block name="d"></block> | ||
|
||
<block name="e"></block> | ||
|
||
|
||
|
||
<block name="f"></block> |
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,8 @@ | ||
<extends src="base.html"> | ||
|
||
<block name="f"> | ||
<b>^^^ 3 empty lines above me (and no empty lines below), as per base.html.</b> | ||
</block> | ||
|
||
|
||
</extends> |
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,39 @@ | ||
<extends src="layout.html"> | ||
|
||
|
||
<block name="a"> | ||
|
||
No line breaks | ||
|
||
</block> | ||
|
||
<block name="b"> | ||
|
||
<span>are inserted,</span> | ||
</block> | ||
|
||
<block name="c"> | ||
because "block" and "extend" are control tags... | ||
</block> | ||
<block name="d"> | ||
<i>...which can't dictate vertical indentation.</i> | ||
|
||
|
||
|
||
</block> | ||
|
||
|
||
|
||
|
||
<block name="e"> | ||
|
||
|
||
|
||
I am indented according to the file which should control it — base.html. | ||
|
||
|
||
|
||
</block> | ||
|
||
|
||
</extends> |