[PRES] [web-pres2] master: Fixed WS

From: Date: Thu, 29 May 2025 13:29:49 +0000
Subject: [PRES] [web-pres2] master: Fixed WS
Groups: php.pres 
Request: Send a blank email to pres+get-2472@lists.php.net to get a copy of this message
Author: Derick Rethans (derickr) Date: 2025-05-29T14:18:12+01:00 Commit: https://github.com/php/web-pres2/commit/c27f5b222cba7fd41b7ff6f36537ba2b724c9c40 Raw diff: https://github.com/php/web-pres2/commit/c27f5b222cba7fd41b7ff6f36537ba2b724c9c40.diff Fixed WS Changed paths: M XML_Presentation.php M XML_Slide.php Diff: diff --git a/XML_Presentation.php b/XML_Presentation.php index 4f9cd54..a2ecc5a 100644 --- a/XML_Presentation.php +++ b/XML_Presentation.php @@ -131,7 +131,7 @@ function startHandler($parser, $element, $attribs) if(!empty($this->activeChapter)) { $this->objects[$this->coid]->slides[$idx]->Chapter = $this->activeChapter; } - break; + break; /* Everything else can't */ case 'SECTION': @@ -206,7 +206,7 @@ function cdataHandler($parser, $cdata) $idx = count($this->objects[$this->coid]->slides) - 1; if($this->last_handler == 'cdata') $this->objects[$this->coid]->slides[$idx]->filename .= $cdata; - else + else $this->objects[$this->coid]->slides[$idx]->filename = $cdata; } else { if($this->last_handler == 'cdata') { diff --git a/XML_Slide.php b/XML_Slide.php index 5db6eff..08b9cda 100644 --- a/XML_Slide.php +++ b/XML_Slide.php @@ -151,15 +151,15 @@ function startHandler($parser, $element, $attribs) if($element=='NUM') { $this->objects[$this->coid]->bullets[$idx]->type = 'number'; } - $this->activeTag = 'BULLET'; + $this->activeTag = 'BULLET'; $this->level++; - break; + break; case 'CELL': $this->objects[$this->coid]->cells[] = new _cell(); $idx = count($this->objects[$this->coid]->cells) - 1; $this->_add_attribs($this->objects[$this->coid]->cells[$idx], $attribs); $this->activeTag = $element; - break; + break; /* Everything else can't */ default: @@ -234,13 +234,13 @@ function cdataHandler($parser, $cdata) $idx = count($this->objects[$this->coid]->bullets) - 1; if($this->last_handler == 'cdata') $this->objects[$this->coid]->bullets[$idx]->text .= $cdata; - else + else $this->objects[$this->coid]->bullets[$idx]->text = $cdata; } elseif($el == 'cell') { $idx = count($this->objects[$this->coid]->cells) - 1; if($this->last_handler == 'cdata') $this->objects[$this->coid]->cells[$idx]->text .= $cdata; - else + else $this->objects[$this->coid]->cells[$idx]->text = $cdata; } else { if($this->last_handler == 'cdata') {

« previous php.pres (#2472) next »