javascript - Line Breaks Inside Jade Templates -


i looking around solution include line break inside title. normal fixes include actual line break inside code...

<div title="ron swanson"></div> 

or use &#013; in place of new line, so...

<div title="ron &#013;swanson"></div> 

these solutions work fine, since i'm using jade templating engine, can't include line break inside code...

.title(title="ron swanson") 

--or--

.title(title="ron\ swanson") 

without \ throws syntax error, , doesn't insert line break. `.title(title="ron swanson") prints out characters literally.

what correct way of including line breaks in jade templates?

i found out can use \n represent new line (just javascript string). doing work...

.title(title="ron\nswanson") 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -