[PRES] [web-pres2] dericks-renderer: Fixed WS

[email protected] (Derick Rethans) Thu, 29 May 2025 13:34:28 +0000
Newsgroups php.pres
Message-ID <[email protected]>
Author: Derick Rethans (derickr)
Date: 2025-05-29T14:22:50+01:00

Commit: https://github.com/php/web-pres2/commit/425f056201d4226ee0e3d04ee93201408990e164
Raw diff: https://github.com/php/web-pres2/commit/425f056201d4226ee0e3d04ee93201408990e164.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 e04e23b..43874c0 100644
--- a/XML_Presentation.php
+++ b/XML_Presentation.php
@@ -130,7 +130,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':
@@ -205,7 +205,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 a427b89..08a55cb 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') {