Whitespace, formatting.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28948 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-03-27 17:57:42 +00:00
parent 7ad28349ab
commit ba92863f0a

View File

@ -416,7 +416,8 @@ docstring InsetCitation:: toolTip(BufferView const & bv, int, int) const
for (; i >= 0; --i) for (; i >= 0; --i)
if (key_info[i] == ' ') if (key_info[i] == ' ')
break; break;
if (i < 0) { // no space found? if (i < 0) {
// no space found
key_info = key_info.substr(0, maxwdth - 3) + "..."; key_info = key_info.substr(0, maxwdth - 3) + "...";
break; break;
} }
@ -424,7 +425,6 @@ docstring InsetCitation:: toolTip(BufferView const & bv, int, int) const
newkey += "\n"; newkey += "\n";
newkey += key_info.substr(0, i); newkey += key_info.substr(0, i);
key_info = " " + key_info.substr(i); key_info = " " + key_info.substr(i);
//key_info = key_info.substr(0, maxtip - 3) + "...";
} }
if (!newkey.empty()) if (!newkey.empty())
newkey += "\n"; newkey += "\n";