+2002-08-25 John Levon <levon@movementarian.org>
+
+ * inseturl.C: elide long URLs (bug 404)
+
2002-08-23 Rob Lahaye <lahaye@snu.ac.kr>
* insetgraphics.[Ch]: remove InsetGraphics::readFigInset()
else
temp = _("HtmlUrl: ");
+ string url;
+
if (!getOptions().empty())
- temp += getOptions();
+ url += getOptions();
else
- temp += getContents();
-
- return temp;
+ url += getContents();
+
+ // elide if long
+ if (url.length() > 30) {
+ url = url.substr(0, 10) + "..."
+ + url.substr(url.length() - 17, url.length());
+ }
+ return temp + url;
}