git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5096 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-08-25 01:15:01 +00:00
parent 3c732e8542
commit e91aba8dd0
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2002-08-25 John Levon <levon@movementarian.org>
* inseturl.C: elide long URLs (bug 404)
2002-08-23 Rob Lahaye <lahaye@snu.ac.kr> 2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
* insetgraphics.[Ch]: remove InsetGraphics::readFigInset() * insetgraphics.[Ch]: remove InsetGraphics::readFigInset()

View File

@ -41,12 +41,19 @@ string const InsetUrl::getScreenLabel(Buffer const *) const
else else
temp = _("HtmlUrl: "); temp = _("HtmlUrl: ");
if (!getOptions().empty()) string url;
temp += getOptions();
else
temp += getContents();
return temp; if (!getOptions().empty())
url += getOptions();
else
url += getContents();
// elide if long
if (url.length() > 30) {
url = url.substr(0, 10) + "..."
+ url.substr(url.length() - 17, url.length());
}
return temp + url;
} }