We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4ebfa2 commit 0394c9aCopy full SHA for 0394c9a
PHPCtags.class.php
@@ -363,8 +363,8 @@ private function render($structure)
363
$str .= "\n";
364
}
365
366
- // remove the last line ending
367
- $str = trim($str);
+ // remove the last line ending and carriage return
+ $str = trim(str_replace("\x0D", "", $str));
368
369
return $str;
370
@@ -374,7 +374,7 @@ private function full_render() {
374
375
$str = '';
376
foreach($this->mLines as $file => $data) {
377
- $str .= $data;
+ $str .= $data.PHP_EOL;
378
379
380
// sort the result as instructed
@@ -389,6 +389,9 @@ private function full_render() {
389
echo "Saved cache file.".PHP_EOL;
390
391
392
+
393
+ $str = trim($str);
394
395
396
397
0 commit comments