Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken indentation with each expression #23

Closed
NGPixel opened this issue May 31, 2019 · 3 comments
Closed

Broken indentation with each expression #23

NGPixel opened this issue May 31, 2019 · 3 comments

Comments

@NGPixel
Copy link

NGPixel commented May 31, 2019

Using html-webpack-pug-plugin version 1.0.1, the indentation below each expressions is lost in the transformed result, e.g.:

html
  head
    each favsize in [57, 60, 72, 76, 114, 120, 144, 152, 180]
      link(rel='apple-touch-icon', sizes=favsize + 'x' + favsize, href='/favicons/apple-icon-' + favsize + 'x' + favsize + '.png')
    link(rel='icon', type='image/png', sizes='192x192', href='/favicons/android-icon-192x192.png')
    each favsize in [32, 96, 16]
      link(rel='icon', type='image/png', sizes=favsize + 'x' + favsize, href='/favicons/favicon-' + favsize + 'x' + favsize + '.png')
    link(rel='manifest', href='/manifest.json')

is incorrectly transformed to

html
  head
    each favsize in [57, 60, 72, 76, 114, 120, 144, 152, 180]
    link(rel='apple-touch-icon', sizes=favsize + 'x' + favsize, href='/favicons/apple-icon-' + favsize + 'x' + favsize + '.png')
    link(rel='icon', type='image/png', sizes='192x192', href='/favicons/android-icon-192x192.png')
    each favsize in [32, 96, 16]
    link(rel='icon', type='image/png', sizes=favsize + 'x' + favsize, href='/favicons/favicon-' + favsize + 'x' + favsize + '.png')
    link(rel='manifest', href='/manifest.json')

The indentation should be retained in the final result.

Thanks!

@negibouze
Copy link
Owner

@NGPixel Thank you for your report.

@negibouze
Copy link
Owner

@NGPixel
Sorry for my late reply.
I released a new version(v2.0.0).
Please try it.

@NGPixel
Copy link
Author

NGPixel commented Jun 23, 2019

👍 Thanks that works

@NGPixel NGPixel closed this as completed Jun 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants