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

Getting an error when leaving a space between doctype and html #75

Open
lobo-tuerto opened this issue Dec 7, 2019 · 5 comments
Open
Labels

Comments

@lobo-tuerto
Copy link

Hello,
I'm just trying out Slime and while converting my app.html.eex file I found out that if I write this:

doctype html

html

I get an error like:

Compiling 1 file (.ex)

== Compilation error in file lib/rumbl_web/views/layout_view.ex ==
** (Slime.TemplateSyntaxError) Unexpected symbol '
'
INPUT, Line 2, Column 1

Notice the empty line between doctype and html.
If I remove the space everything is ok.

It also works like this:

doctype html
|
html

Is there any particular reason why an empty line is not allowed between the doctype and html tags?

@doomspork
Copy link
Member

@lobo-tuerto what versions are you running? This should work unless I'm misunderstanding something here.

@lobo-tuerto
Copy link
Author

@doomspork According to mix.lock:

:phoenix_slime, "0.13.0"
:slime, "1.2.1"

@Tolsee
Copy link

Tolsee commented Mar 28, 2020

@doomspork It seems like an interesting issue, I am willing to work on it. Can you or anyone else give me pointers If any?

@Rakoth
Copy link
Member

Rakoth commented Mar 29, 2020

Already fixed in slime slime-lang/slime#160

@doomspork
Copy link
Member

Thanks all! I’m going to cut a new release shortly

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

4 participants