Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
precious-onyenaucheya-ons committed Nov 28, 2023
1 parent e89b305 commit 5a22cae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/render-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export default function renderExample(templatePath, nunjucksEnvironment) {
const compiledTemplate = nunjucks.compile(template, nunjucksEnvironment, templatePath);

let html = compiledTemplate.render(templatePath);
return html.replace(/>\s*/g, '>');

return html.replace(/\s*(<svg)/g, '$1');
} catch (err) {
console.error(`An error occurred whilst rendering: ${templatePath}`);
throw err;
Expand Down

0 comments on commit 5a22cae

Please sign in to comment.