瀏覽代碼

Merge pull request #13747 from surajshetty3416/fix-email-style

version-14
Suraj Shetty 4 年之前
committed by GitHub
父節點
當前提交
e50059a86d
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 2 個檔案被更改,包括 8 行新增2 行删除
  1. +1
    -1
      frappe/email/test_email_body.py
  2. +7
    -1
      frappe/public/scss/email.bundle.scss

+ 1
- 1
frappe/email/test_email_body.py 查看文件

@@ -127,7 +127,7 @@ w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
'''
transformed_html = '''
<h3>Hi John</h3>
<p style="margin:5px 0 !important">This is a test email</p>
<p style="margin:1em 0 !important">This is a test email</p>
'''
self.assertTrue(transformed_html in inline_style_in_html(html))



+ 7
- 1
frappe/public/scss/email.bundle.scss 查看文件

@@ -36,7 +36,13 @@ a {
}

p {
margin: 5px 0 !important;
margin: 1em 0 !important;
}

.with-container {
p {
margin: 5px 0 !important;
}
}

.ql-editor {


Loading…
取消
儲存