wiki:xref:dokuwiki:inc:parsing:handler:preformatted.php
- Preformatted.php
- <?php
- namespace dokuwiki\Parsing\Handler;
- class Preformatted extends AbstractRewriter
- {
- protected $pos;
- protected $text ='';
- /** @inheritdoc */
- public function finalise()
- {
- $this->process();
- $this->callWriter->finalise();
- }
- /** @inheritdoc */
- public function process()
- {
- foreach ($this->calls as $call) {
- switch ($call[0]) {
- case 'preformatted_start':
- break;
- case 'preformatted_newline':
- $this->text .= "\n";
- break;
- case 'preformatted_content':
- $this->text .= $call[1][0];
- break;
- case 'preformatted_end':
- }
- // see FS#1699 & FS#1652, add 'eol' instructions to ensure proper triggering of following p_open
- break;
- }
- }
- return $this->callWriter;
- }
- }
Только авторизованные участники могут оставлять комментарии.
wiki/xref/dokuwiki/inc/parsing/handler/preformatted.php.txt · Последнее изменение: — 127.0.0.1