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

Generating Invalid Pug #8

Closed
colinskow opened this issue Dec 22, 2016 · 1 comment
Closed

Generating Invalid Pug #8

colinskow opened this issue Dec 22, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@colinskow
Copy link

When I input:

<button>
  Hello
</button>
<button>
  World
</button>
<button>
  <script src="hello.js" async></script>
  <span class="bold">About Us</span>
</button>
<span>About Us</span>
<span>Contact Us</span>

html2pug generates:

button  Hello
|  
button  World
|  
button
  script(src='hello.js', async='')
  |  
  span.bold About Us
|  
span About Us
|  
span Contact Us

The empty lines with pipes are invalid and generate a compiler error. This was tested using the html2pug.com website.

@izolate izolate added the bug label Jul 8, 2017
@izolate izolate added this to the 1.0.0 milestone Jul 9, 2017
@izolate izolate self-assigned this Jul 9, 2017
@izolate izolate mentioned this issue Jul 9, 2017
izolate added a commit that referenced this issue Jul 9, 2017
@izolate izolate closed this as completed in 643d67e Jul 9, 2017
@izolate
Copy link
Owner

izolate commented Jul 9, 2017

@colinskow Thanks for the report - fixed in 1.0.0

asoltys pushed a commit to asoltys/html2pug that referenced this issue Sep 22, 2017
asoltys pushed a commit to asoltys/html2pug that referenced this issue Sep 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants