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

Unbuffered comments (in a row) can suspend the parser from rendering #17

Closed
gabstv opened this issue Nov 27, 2017 · 0 comments
Closed

Comments

@gabstv
Copy link

gabstv commented Nov 27, 2017

If you put two unbuffered comments in a row, the rest of the template will not be parsed properly:

This template code

doctype html
html
	head
		meta(charset="utf-8")
		title= .Title
		//- unbuffered comment 1
		//- unbuffered comment 2
	body
		p hello
		p hello 2

Should produce this html

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>{{ .Title }}</title>
    </head>
    <body>
        <p>hello</p>
        <p>hello 2</p>
    </body>
</html>

But it produces this instead:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>{{ .Title }}</title>
    </head>
</html>
@Joker Joker closed this as completed in e1eaa76 Apr 18, 2018
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

1 participant