projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e6d0cb
)
correct fix of error
author
Alan
<alan@roojs.com>
Tue, 21 Nov 2023 06:38:15 +0000
(14:38 +0800)
committer
Alan
<alan@roojs.com>
Tue, 21 Nov 2023 06:38:15 +0000
(14:38 +0800)
Document/Word/Writer/Section/Footer/PreserveText.php
patch
|
blob
|
history
diff --git
a/Document/Word/Writer/Section/Footer/PreserveText.php
b/Document/Word/Writer/Section/Footer/PreserveText.php
index
3e2f5ea
..
1c75db0
100644
(file)
--- a/
Document/Word/Writer/Section/Footer/PreserveText.php
+++ b/
Document/Word/Writer/Section/Footer/PreserveText.php
@@
-97,7
+97,7
@@
class Document_Word_Writer_Section_Footer_PreserveText
}
\r
\r
$pattern = '/({.*?})/';
\r
- $this->_text = preg_split($pattern,
empty($text) ? '' : $text, null
, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
\r
+ $this->_text = preg_split($pattern,
$text, -1
, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
\r
return $this;
\r
}
\r
\r