File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/java/pt/lsts/neptus/params Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments