AntoineMary / grunt-angular-file-loader

Automatically sort and inject AngularJS app files depending on module definitions and usage
MIT License
5 stars 8 forks source link

tag messup #10

Closed noXi89 closed 8 years ago

noXi89 commented 8 years ago

Auto-indentation is not working (I guess). It duplicated tags from above.

Template-File:


  <!-- build:js({.tmp,app}) scripts/scripts.js -->

  <!-- angular -->
  <!-- endangular -->

  <!-- endbuild -->

Result:


  <!-- build:js({.tmp,app}) scripts/scripts.js -->

  <!-- angular -->

  <!-- build:js({.tmp,app}) scripts/scripts.js -->

  <script src="modules/directives/...js" type="text/javascript"></script>

  <!-- build:js({.tmp,app}) scripts/scripts.js -->

  <!-- endangular -->

  <!-- endbuild -->
noXi89 commented 8 years ago

Example 2

Temlpate:

<html>
<body>
  <!-- angular -->
  <!-- endangular -->
</body>
</html>

Result:

<html>
<body>
  <!-- angular -->
<html>
<body>
  <script src="app.js" type="text/javascript"></script>
<html>
<body>
  <!-- endangular -->
</body>
</html>
noXi89 commented 8 years ago

fixed in #11 please review