Sublime Forum

Inconsistent Join Lines behavior sometimes adds a space

#1

Working with the Join Lines (Ctrl + J) feature, it appears that sometimes it joins the lines without adding spaces between and sometimes it adds spaces.

If you join these two lines…

\n\tFirst\"\" \n\tSecond\"\"

It yields

\n\tFirst\"\"\n\tSecond\"\"

No space between the joined lines (which is what I expect).

However, if you join these two lines…

\n\t<First> \n\t<Second>

It yields

\n\t<First> \n\t<Second>

Note the space added in the middle of the join (not expected).

After experimenting with it, it appears that quote is treated special - if the line ends in a quote no space gets added; any other character gets a space.

Is there a way to always make line-joins exclude the space?

0 Likes