This is something I noted after I installed a specific plugin that allows adding information to tooltips. This is what I have setup:
[=gitcmd.Branch] [=gitcmd.FirstRemoteUrl]\n[=gitcmd.FallIsLast] [=gitcmd.FallAge]\n[=gitcmd.FallMessage]\n[=gitcmd.FallAuthor] [=gitcmd.FallDate.D.M.Y h

s]\n[=gitcmd.GeneralStatus]
And this is how it works:
[img]https://i.ibb.co/1v6BHyT/image.png[/img]
However (here comes the bug):
[img]https://i.ibb.co/gJ8DXP3/image.png[/img]
This happens because of the 3 \n I'm using.
Tooltips should be the smallest possible and blank lines should be stripped out.
It is my understanding that lines that only have blank characters should not be displayed at all.
Here is the list of blank characters that I know of:
[td]Unicode[/td][td]HTML[/td][td]Description[/td][td]Example[/td]
[td]U+0020[/td][td] [/td][td]Space[/td][td][ ][/td]
[td]U+00A0[/td][td] [/td][td]No-Break Space[/td][td][ ][/td]
[td]U+2000[/td][td] [/td][td]En Quad[/td][td][ ][/td]
[td]U+2001[/td][td] [/td][td]Em Quad[/td][td][ ][/td]
[td]U+2002[/td][td] [/td][td]En Space[/td][td][ ][/td]
[td]U+2003[/td][td] [/td][td]Em Space[/td][td][ ][/td]
[td]U+2004[/td][td] [/td][td]Three-Per-Em Space[/td][td][ ][/td]
[td]U+2005[/td][td] [/td][td]Four-Per-Em Space[/td][td][ ][/td]
[td]U+2006[/td][td] [/td][td]Six-Per-Em Space[/td][td][ ][/td]
[td]U+2007[/td][td] [/td][td]Figure Space[/td][td][ ][/td]
[td]U+2008[/td][td] [/td][td]Punctuation Space[/td][td][ ][/td]
[td]U+2009[/td][td] [/td][td]Thin Space[/td][td][ ][/td]
[td]U+200A[/td][td] [/td][td]Hair Space[/td][td][ ][/td]
[td]U+2028[/td][td]
[/td][td]Line Separator[/td][td][
][/td]
[td]U+205F[/td][td] [/td][td]Medium Mathematical Space[/td][td][ ][/td]
[td]U+3000[/td][td] [/td][td]Ideographic Space[/td][td][ ][/td]
In essence, what I'm saying is that TC should be removing any blank lines. This is a pretty standard concept that applies to different contexts. From Notepad++:
[img]https://i.ibb.co/4Jmmztf/image.png[/img]
If we want to give users the possibility of adding blank lines, maybe we should force the usage of \s (= whitespace in regex). For instance, if I wanted a tooltip like:
"<blank line>
text1
<blank line>
text2
<blank line>"
We could do something like:
\s\ntext1\n\s\ntext2\n\s
As it is now, all my tooltips on files not in a Git repository are bugged. I don't think anyone would look at that and not say "there is a bug in the tooltips."
This existed before 10.0.