You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: email-template-builder-markdown/src/main/java/io/rocketbase/mail/markdown/CssInlinerAttributeProvider.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,8 @@ public AttributeProvider create(AttributeProviderContext attributeProviderContex
Copy file name to clipboardExpand all lines: email-template-builder/src/test/java/io/rocketbase/mail/EmailTemplateBuilderTest.java
+34-62Lines changed: 34 additions & 62 deletions
Original file line number
Diff line number
Diff line change
@@ -73,20 +73,14 @@ public void standardTestHtml() {
73
73
.keyValue("Username", "{{username}}")
74
74
.and()
75
75
.html("If you have any questions, feel free to <a href=\"mailto:{{support_email}}\">email our customer success team</a>. (We're lightning quick at replying.) We also offer <a href=\"{{live_chat_url}}\">live chat</a> during business hours.",
76
-
"""
77
-
If you have any questions, feel free to email our customer success team
78
-
(We're lightning quick at replying.) We also offer live chat during business hours.\
79
-
""").and()
80
-
.text("""
81
-
Cheers,
82
-
The [Product Name] Team\
83
-
""").and()
76
+
"If you have any questions, feel free to email our customer success team\n" +
77
+
"(We're lightning quick at replying.) We also offer live chat during business hours.").and()
78
+
.text("Cheers,\n" +
79
+
"The [Product Name] Team").and()
84
80
.copyright("rocketbase").url("https://www.rocketbase.io").suffix(". All rights reserved.").and()
Copy file name to clipboardExpand all lines: email-template-builder/src/test/java/io/rocketbase/mail/HtmlLineTest.java
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,9 @@ class HtmlLineTest {
10
10
@Test
11
11
voidtestHtmlExtraction() {
12
12
HtmlLinehtmlLine = newHtmlLine(null, "<p>My very <i>easy</i> example that should <div style='background: red'>work</div></p>also the text version should look<br>very fine... See also <a href='http://test.de' style='color: red'>test.de</a><br>see you soon :)");
13
-
assertThat(htmlLine.getText(), equalTo("""
14
-
My very easy example that should work
15
-
also the text version should look
16
-
very fine... See also test.de -> http://test.de
17
-
see you soon :)\
18
-
"""));
13
+
assertThat(htmlLine.getText(), equalTo("My very easy example that should work\n" +
14
+
"also the text version should look\n" +
15
+
"very fine... See also test.de -> http://test.de\n" +
0 commit comments