Sublime Forum

Prevent html tags from being word wrapped

#1

Today, while using Sublime word_wrap feature my html tags appear like this:

long line of text</p
>

How can I prevent this?

0 Likes

#2

Do not add a space after the p on </p

For example, instead of writing </p >, write </p>

Then, the whole tag </p> will be wrapped into the next line, instead of only the last >

0 Likes

#3

Correction, sometimes Sublime Text will wrap it even when there is no space:
image

Other times, it will wrap as I said:
image

0 Likes