Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
added trim() to stylus example (#68)
Browse files Browse the repository at this point in the history
otherwise stylus parser breaks on leading whitespaces
  • Loading branch information
coderofsalvation authored and FranckFreiburger committed Mar 26, 2019
1 parent c8c6cb2 commit 97df297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ httpVueLoader.langProcessor.stylus = function(stylusText) {
return new Promise(function(resolve, reject) {
stylus.render(stylusText, {}, function(err, css) {
stylus.render(stylusText.trim(), {}, function(err, css) {
if (err) reject(err);
resolve(css);
Expand Down

0 comments on commit 97df297

Please sign in to comment.