Skip to content

Commit af573e7

Browse files
CS-41851- Fixed issue of adding an extra <br/> tag in breaks.
1 parent 111f1e1 commit af573e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public String renderOptions(JSONObject embeddedObject, Metadata metadata) {
5454
*/
5555
@Override
5656
public String renderMark(MarkType markType, String text) {
57-
String textContainsBreak = renderHtmlWithLineBreaks(text); // Replace "\n" with "<br/>" tags
57+
String textContainsBreak = renderHtmlWithLineBreaks(text); // v1.2.5
5858
switch (markType) {
5959
case SUPERSCRIPT:
6060
return "<sup>" + textContainsBreak + "</sup>";
@@ -71,7 +71,7 @@ public String renderMark(MarkType markType, String text) {
7171
case BOLD:
7272
return "<strong>" + textContainsBreak + "</strong>";
7373
case BREAK:
74-
return "<br />"+text;
74+
return "<br />"+text; // v1.2.5
7575
default:
7676
return textContainsBreak;
7777
}

0 commit comments

Comments
 (0)