alanshaw / alanshaw/grunt-include-replace

Argument of include can't have linebreak

オープン
#62 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
199
フォーク
43
PR マージ指標
30日以内にマージされた PR はありません

説明

Now this is serious trouble for me.

What i mean is that:

```
@@include('templates/main_heading.tpl.html', {
"subheader": "Subheader introduction",
})
```

pass ok

```
@@include('templates/main_heading.tpl.html', {
"subheader": "
Subheader introduction
test test test
",
})
```

is not!
got:
Warning: Unexpected token
Use --force to continue.

This is superimportant, since you can do stuff like that even:

```
@@include('templates/main_heading.tpl.html', {
"content": "

thiis is my supadupa haeding


Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis.

",
})
```

And everything passes perfectly good except linebreaks :\

I really hope it's fixeable (seem to be regex issue that can be overcome)
If anybody can post solution immideately (before | if at all) it would be fixed with new release i would love to see it)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。