We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d2b46f2 + 2f3f99a commit 4268705Copy full SHA for 4268705
2 files changed
class/Files/CreateFile.php
@@ -32,6 +32,11 @@
32
*/
33
class CreateFile extends CreateTableFields
34
{
35
+ /**
36
+ * @var string
37
+ */
38
+ private $tab = ' ';
39
+
40
/**
41
* @var mixed
42
@@ -213,7 +218,8 @@ public function getFileName()
213
218
214
219
private function setContent($content)
215
220
216
- $this->content = $content;
221
+ //replace tabs by 4 spaces
222
+ $this->content = preg_replace('/\t/', $this->tab, $content);
217
223
}
224
225
docs/changelog.txt
@@ -31,6 +31,7 @@
31
- added clone feature for items (mjoel/goffy)
- update test data (mamba/goffy)
- added start/limit handling (goffy)
+ - replace tab by 4 spaces during creation (goffy)
<h5>3.04 Final [2020-11-11]</h5> Dev: XOOPS 2.5.11, PHP 7.4.5
<hr>
0 commit comments