Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jade - missing space before text for line x of jade file

Tags:

pug

I'm making an Express based web application and everytime someone visits this jade file i get the following error:

Warning: missing space before text for line 28 of jade file "C:\x\app\view s\login.jade" 

It also spits it out a few times for each line it happens on.

I took a look at these lines and I can not figure out what it's complaining about.

My jade file is as follows:

doctype html html     head         meta(charset='utf-8')         link(href='style.css', rel='stylesheet')     body         .wrapper             header.header                 a(href="/", style="color: #000000;")                     h1(style="position: absolute; top: 30px;") Hello             .middle                 .container                     main.stream                         p Login                     main.name                         form(id="login",    method="POST", action="/login")                             table(cellspacing="15")                                 tr                                     td Email                                     td                                         input(type='email', name='email' style="width: 250; height: 18px; border: 1px solid #999999; padding: 5px;")                                 tr                                     td Password                                     td                                         input(type='password', name='password' style="width: 250; height: 18px; border: 1px solid #999999; padding: 5px;")                                 tr                                     td                                         input(style="width:75px;height:30px;", type="submit", value="Login")                      aside.left-sidebar                     main.dir                         a(href="/") Home                     main.dir                         a(href="/signup")   Register                                 footer.footer             h3 Hello             p This is a footer 
like image 956
novs12 Avatar asked Mar 04 '14 20:03

novs12


1 Answers

In Jade use | when start with only text

wrong ->

td   {{anything}}   br   Hello 

correct ->

td   | {{anything}}   br   | Hello 
like image 113
Jesus Avatar answered Sep 28 '22 01:09

Jesus