Sublime Forum

Reformatting error in ST (potentially)

#1

I may have spotted a bug in Sublime Text. I am working on a random password generator in C, and in the comments section, at the top of my code, I mention the word CUPS and then I have an open parenthesis and a brief sentence and when I go to EDIT, WRAP and select the 70 character margin, is reformats it as CUPS( instead of CUPS (. I do not know why this is happening. Any ideas?

0 Likes

#2

This is mainly because ST treats all content of source files as source and thus assumes CUPS( to be a function call for which separating function name and parameter group with space is not desired.

FWIW, Wrap Plus package though not perfect, too, may produce better results in most cases.

0 Likes