alanshaw / alanshaw/grunt-include-replace

Argument of include can't have linebreak

Đang mở
#62 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
199
Fork
43
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.