Verzeichnisstruktur phpBB-3.3.15
- Veröffentlicht
- 28.08.2024
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
ForcedLineBreaks.php
01 <?php
02
03 /**
04 * @package s9e\TextFormatter
05 * @copyright Copyright (c) 2010-2022 The s9e authors
06 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
07 */
08 namespace s9e\TextFormatter\Plugins\Litedown\Parser\Passes;
09
10 class ForcedLineBreaks extends AbstractPass
11 {
12 /**
13 * {@inheritdoc}
14 */
15 public function parse()
16 {
17 $pos = $this->text->indexOf(" \n");
18 while ($pos !== false)
19 {
20 $this->parser->addBrTag($pos + 2)->cascadeInvalidationTo(
21 $this->parser->addVerbatim($pos + 2, 1)
22 );
23 $pos = $this->text->indexOf(" \n", $pos + 3);
24 }
25 }
26 }