-
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.
- Loading branch information
1 parent
4e885e3
commit 7a2a66b
Showing
7 changed files
with
59 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
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,28 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace SupportPal\DomUtils\Text\Elements; | ||
|
||
use SupportPal\DomUtils\Text\Css\Breakline; | ||
use SupportPal\DomUtils\Text\Css\Content; | ||
use SupportPal\DomUtils\Text\Css\Margin; | ||
|
||
class Pre extends Element | ||
{ | ||
public function startNode(): ?Content | ||
{ | ||
if ($this->previous instanceof Margin || $this->previous instanceof Breakline) { | ||
return null; | ||
} | ||
|
||
return new Margin(1); | ||
} | ||
|
||
public function endNode(): ?Content | ||
{ | ||
if ($this->previous instanceof Margin || $this->previous instanceof Breakline) { | ||
return null; | ||
} | ||
|
||
return new Margin(1); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<p>Here is the code</p> | ||
<pre> | ||
#include <stdlib.h> | ||
#include <stdio.h> | ||
|
||
int main(){ | ||
return 0; | ||
}; | ||
|
||
</pre> |
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 @@ | ||
Here is the code | ||
|
||
#include <stdlib.h> | ||
#include <stdio.h> | ||
|
||
int main(){ | ||
return 0; | ||
}; |