consistent url formatting
This commit is contained in:
parent
5dcbb11f41
commit
653618e83e
@ -58,28 +58,28 @@ public class AboutDialog extends JDialog {
|
|||||||
"Sibo Van Gool (Dutch)<br>" +
|
"Sibo Van Gool (Dutch)<br>" +
|
||||||
"<br>" +
|
"<br>" +
|
||||||
"See all contributors at <br>" +
|
"See all contributors at <br>" +
|
||||||
href("https://github.com/openrocket/openrocket/graphs/contributors") + "<br>" +
|
href("https://github.com/openrocket/openrocket/graphs/contributors", false) + "<br>" +
|
||||||
"<br>" +
|
"<br>" +
|
||||||
"<b>OpenRocket utilizes the following libraries:</b><br>" +
|
"<b>OpenRocket utilizes the following libraries:</b><br>" +
|
||||||
"<br>" +
|
"<br>" +
|
||||||
"MiG Layout (" + href("http://www.miglayout.com/") + ")<br>" +
|
"MiG Layout " + href("http://www.miglayout.com/", true) + "<br>" +
|
||||||
"JFreeChart (" + href("http://www.jfree.org/jfreechart/") + ")<br>" +
|
"JFreeChart " + href("http://www.jfree.org/jfreechart/", true) + "<br>" +
|
||||||
"iText (" + href("http://www.itextpdf.com/") + ")<br>" +
|
"iText " + href("http://www.itextpdf.com/", true) + "<br>" +
|
||||||
"exp4j (" + href("http://projects.congrace.de/exp4j/index.html") + ")<br>" +
|
"exp4j " + href("http://projects.congrace.de/exp4j/index.html", true) + "<br>" +
|
||||||
"JOGL (" + href("http://jogamp.org/jogl/www/") + ")<br>" +
|
"JOGL " + href("http://jogamp.org/jogl/www/", true) + "<br>" +
|
||||||
"Guava (" + href("https://github.com/google/guava") + ")<br>" +
|
"Guava " + href("https://github.com/google/guava", true) + "<br>" +
|
||||||
"Opencsv (" + href("http://opencsv.sourceforge.net/") + ")<br>" +
|
"Opencsv " + href("http://opencsv.sourceforge.net/", true) + "<br>" +
|
||||||
"Simple Logging Facade for Java (" + href("http://www.slf4j.org/") + ")<br>" +
|
"Simple Logging Facade for Java " + href("http://www.slf4j.org/", true) + "<br>" +
|
||||||
"Java library for parsing and rendering CommonMark (" + href("https://github.com/commonmark/commonmark-java") + ")<br>" +
|
"Java library for parsing and rendering CommonMark " + href("https://github.com/commonmark/commonmark-java", true) + "<br>" +
|
||||||
"<br>" +
|
"<br>" +
|
||||||
"<b>OpenRocket gratefully acknowledges our use of the following databases:</b><br>" +
|
"<b>OpenRocket gratefully acknowledges our use of the following databases:</b><br>" +
|
||||||
"<br>" +
|
"<br>" +
|
||||||
"Rocket Motor Data (" + href("https://www.thrustcurve.org/") + ")<br>" +
|
"Rocket Motor Data " + href("https://www.thrustcurve.org/", true) + "<br>" +
|
||||||
"Enhanced components database for OpenRocket" + href("https://github.com/dbcook/openrocket-database/") + ")" +
|
"Enhanced components database for OpenRocket" + href("https://github.com/dbcook/openrocket-database/", true) +
|
||||||
"</center></html>";
|
"</center></html>";
|
||||||
|
|
||||||
private String href(String url) {
|
private String href(String url, boolean delimiters) {
|
||||||
return "<a href=\"" + url + "\">" + url + "</a>";
|
return (delimiters ? "(" : "") + "<a href=\"" + url + "\">" + url + "</a>" + (delimiters ? ")" : "");
|
||||||
}
|
}
|
||||||
|
|
||||||
public AboutDialog(JFrame parent) {
|
public AboutDialog(JFrame parent) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user