Changeset 8846 in josm for trunk/src/org/openstreetmap/josm/gui/widgets
- Timestamp:
- 2015-10-10T01:40:42+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/widgets
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/HtmlPanel.java
r6890 r8846 37 37 f.isItalic() ? "italic" : "normal" 38 38 ); 39 rule = "body {" + rule + "}";39 rule = "body {" + rule + '}'; 40 40 rule = MessageFormat.format( 41 41 "font-family: ''{0}'';font-size: {1,number}pt; font-weight: {2}; font-style: {3}", … … 45 45 f.isItalic() ? "italic" : "normal" 46 46 ); 47 rule = "strong {" + rule + "}";47 rule = "strong {" + rule + '}'; 48 48 ss.addRule(rule); 49 49 ss.addRule("a {text-decoration: underline; color: blue}"); -
trunk/src/org/openstreetmap/josm/gui/widgets/JosmEditorPane.java
r8377 r8846 99 99 final Font f = UIManager.getFont("Label.font"); 100 100 final StyleSheet ss = new StyleSheet(); 101 ss.addRule((allBold ? "html" : "strong, b") + " {" + getFontRule(f) + "}");101 ss.addRule((allBold ? "html" : "strong, b") + " {" + getFontRule(f) + '}'); 102 102 ss.addRule("a {text-decoration: underline; color: blue}"); 103 ss.addRule("h1 {" + getFontRule(GuiHelper.getTitleFont()) + "}");103 ss.addRule("h1 {" + getFontRule(GuiHelper.getTitleFont()) + '}'); 104 104 ss.addRule("ol {margin-left: 1cm; margin-top: 0.1cm; margin-bottom: 0.2cm; list-style-type: decimal}"); 105 105 ss.addRule("ul {margin-left: 1cm; margin-top: 0.1cm; margin-bottom: 0.2cm; list-style-type: disc}"); 106 106 if ("km".equals(LanguageInfo.getJOSMLocaleCode())) { 107 107 // Fix rendering problem for Khmer script 108 ss.addRule("p {" + getFontRule(UIManager.getFont("Label.font")) + "}");108 ss.addRule("p {" + getFontRule(UIManager.getFont("Label.font")) + '}'); 109 109 } 110 110 kit.setStyleSheet(ss); -
trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitLayout.java
r8840 r8846 1158 1158 } 1159 1159 } else { 1160 throwParseException(st, "unrecognized attribute \"" + name + "\"");1160 throwParseException(st, "unrecognized attribute \"" + name + '\"'); 1161 1161 } 1162 1162 } … … 1213 1213 parseSplit(st, split); 1214 1214 } else { 1215 throwParseException(st, "unrecognized node type '" + nodeType + "'");1215 throwParseException(st, "unrecognized node type '" + nodeType + '\''); 1216 1216 } 1217 1217 }
Note:
See TracChangeset
for help on using the changeset viewer.