Sublime Forum

Line breaks and tabing with emmet

#1

Hello guys, I used SL for a long time but this is the first time I installed Emmet and I have noticed a problem.
You probably heard this one since I found some posts about it but no solution.
The problem is that <br> and <br/> stays as is - a text and not actually breaking into the new line. (not from HTML or PHP). Also tabbing and making new lines inside the html itself manifests on the actual page when runned from browser. Is there a way to go around this? I love Emmet it makes everything so much easier but this thing is really annoying :confused:
This is the code that renders the image below:

$con->Close();
$handle = $con->Connect("engine");
$console .= $install->Function1($handle);
$console .= "<br/>";
$console .= $install->Function2($handle);
$console .= "<br/>";

And here is the image:

0 Likes

#2

This sort of issue seems less like a problem with Emmet and more like your content type is being set incorrectly, so the browser doesn’t know that the text you’re giving it is HTML and so it doesn’t interpret the tags correct. Do other tags do what you might expect?

I would check that the content type is being set to text/html in the page as it’s being delivered to the browser as a first trouble shooting step.

0 Likes