]> git.lyx.org Git - features.git/commitdiff
Whitespace, formatting.
authorRichard Heck <rgheck@comcast.net>
Fri, 27 Mar 2009 17:57:42 +0000 (17:57 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 27 Mar 2009 17:57:42 +0000 (17:57 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28948 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCitation.cpp

index 77bce69878c6ac4e427fffca3e56228173226e51..1dd3f725910dae4e96454b67828b5f6d4e93d684 100644 (file)
@@ -400,10 +400,10 @@ docstring InsetCitation:: toolTip(BufferView const & bv, int, int) const
                return _("No citations selected!");
 
        vector<docstring> keys = getVectorFromString(key);
-       vector<docstring>::const_iterator it  = keys.begin();
+       vector<docstring>::const_iterator it = keys.begin();
        vector<docstring>::const_iterator en = keys.end();
        docstring tip;
-       for (; it       != en; ++it) {
+       for (; it != en; ++it) {
                docstring key_info = bi.getInfo(*it);
                if (key_info.empty())
                        continue;
@@ -416,7 +416,8 @@ docstring InsetCitation:: toolTip(BufferView const & bv, int, int) const
                        for (; i >= 0; --i)
                                if (key_info[i] == ' ')
                                        break;
-                       if (i < 0) { // no space found?
+                       if (i < 0) { 
+                               // no space found
                                key_info = key_info.substr(0, maxwdth - 3) + "...";
                                break;
                        }
@@ -424,7 +425,6 @@ docstring InsetCitation:: toolTip(BufferView const & bv, int, int) const
                                newkey += "\n";
                        newkey += key_info.substr(0, i);
                        key_info = "  " + key_info.substr(i);
-                       //key_info = key_info.substr(0, maxtip - 3) + "...";
                }
                if (!newkey.empty())
                        newkey += "\n";