Skip to content

Commit f8d622b

Browse files
https://contentstack.atlassian.net/browse/CS-41476
support fot a br tag for the empty lines in the html we created. br tag support added in the place of \n
1 parent 581ff03 commit f8d622b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/contentstack/utils/render/DefaultOption.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ String strAttrs(JSONObject nodeObject) {
203203
for (String key : attrsObject.keySet()) {
204204
Object objValue = attrsObject.opt(key);
205205
String value = objValue.toString();
206-
// TODO: If style is available, do styling calculations
206+
// If style is available, do styling calculations
207207
if (Objects.equals(key, "style")) {
208208
String resultStyle = stringifyStyles(attrsObject.optJSONObject("style"));
209209
result.append(" ").append(key).append("=\"").append(resultStyle).append("\"");

0 commit comments

Comments
 (0)