Skip to content

Commit d89cf54

Browse files
committed
making sure their are no extraneous lines at the end of an annotations file
1 parent 7cb258e commit d89cf54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PatternLab/Annotations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public static function gather() {
9292
// read in the old style annotations.js, modify the data and generate JSON array to merge
9393
$oldStyleAnnotationsPath = $annotationsDir.DIRECTORY_SEPARATOR."annotations.js";
9494
if (file_exists($oldStyleAnnotationsPath)) {
95-
$text = file_get_contents($oldStyleAnnotationsPath);
95+
$text = trim(file_get_contents($oldStyleAnnotationsPath));
9696
$text = str_replace("var comments = ","",$text);
9797
if ($text[strlen($text)-1] == ";") {
9898
$text = rtrim($text,";");

0 commit comments

Comments
 (0)