Skip to content

Commit 9f79f8f

Browse files
Merge pull request #823 from JBBianchi/fix-822-broken-example-readme
Fixed examples hydration breaking samples in README
2 parents 3b6f976 + cb83155 commit 9f79f8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.ci/examples-readme-hydration/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const disclaimer = `<!--
3232
console.error('Enable to parse JSON or convert it to YAML, output as it is.', ex);
3333
}
3434
}
35+
fileContent = fileContent.trim() + '\n';
3536
readMe = readMe.replace(include[0], fileContent);
3637
};
3738
await fs.promises.writeFile(readMeOutputPath, disclaimer + readMe, { encoding: 'utf8', flag: 'w' });

0 commit comments

Comments
 (0)