Skip to content

Commit d4cf3a3

Browse files
params/ConfigurationManager: Styling tables for better looking.
1 parent e677b89 commit d4cf3a3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/java/pt/lsts/neptus/params/ConfigurationManager.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,11 @@ else if (sizeMinList != null && sizeMaxList != null) {
848848
descStr.replaceAll("\\n$", "");
849849
descStr.replaceAll("(\\n){2}", "");
850850
descStr = descStr.replaceAll("\\n", "<br/>");
851+
// replace also a table (even with other attributes) html tag with style to configure css for more modern table style
852+
descStr = descStr.replaceAll("<table(.*?)border=\"\\d+\"(.*?)>", "<table\1\2>");
853+
descStr = descStr.replaceAll("<table(.*?)>", "<table style=\"border-collapse:separate;border-spacing:8px 0;\">");
854+
descStr = descStr.replaceAll("<th(.*?)>", "<th style=\"background-color:#C1C1C1;padding:6px 12px;border-right:2px solid #E1E1E1;\">");
855+
descStr = descStr.replaceAll("<td(.*?)>", "<td style=\"border-bottom: 1px dotted #333;padding:3px 8px;\">");
851856
property.setShortDescription(descStr);
852857
property.setCategory(sectionI18nName);
853858
property.setCategoryId(sectionName);

0 commit comments

Comments
 (0)