mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Add blockquote formatting unless exists already
This commit is contained in:
@@ -2848,7 +2848,14 @@ my ($body) = @_;
|
||||
|
||||
# Mail iframe inner styles
|
||||
my $iframe_styles =
|
||||
'<style>html,body { overflow-y: hidden; }</style>';
|
||||
'<style>
|
||||
html,body { overflow-y: hidden; }
|
||||
blockquote:not([style]) {
|
||||
margin: 0px 0px 0px 0.8ex;
|
||||
border-left: 1px solid #ccc;
|
||||
padding-left: 1ex;
|
||||
}
|
||||
</style>';
|
||||
# Add inner styles to the email body
|
||||
if ($body =~ /<\/body>/) {
|
||||
$body =~ s/<\/body>/$iframe_styles<\/body>/;
|
||||
|
||||
Reference in New Issue
Block a user