Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13994296
D14248.id34399.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D14248.id34399.diff
View Options
diff --git a/src/infrastructure/markup/interpreter/PhabricatorRemarkupCowsayBlockInterpreter.php b/src/infrastructure/markup/interpreter/PhabricatorRemarkupCowsayBlockInterpreter.php
--- a/src/infrastructure/markup/interpreter/PhabricatorRemarkupCowsayBlockInterpreter.php
+++ b/src/infrastructure/markup/interpreter/PhabricatorRemarkupCowsayBlockInterpreter.php
@@ -28,10 +28,16 @@
->setText($content)
->renderCow();
- if ($this->getEngine()->isTextMode()) {
+ $engine = $this->getEngine();
+
+ if ($engine->isTextMode()) {
return $result;
}
+ if ($engine->isHTMLMailMode()) {
+ return phutil_tag('pre', array(), $result);
+ }
+
return phutil_tag(
'div',
array(
diff --git a/src/infrastructure/markup/interpreter/PhabricatorRemarkupFigletBlockInterpreter.php b/src/infrastructure/markup/interpreter/PhabricatorRemarkupFigletBlockInterpreter.php
--- a/src/infrastructure/markup/interpreter/PhabricatorRemarkupFigletBlockInterpreter.php
+++ b/src/infrastructure/markup/interpreter/PhabricatorRemarkupFigletBlockInterpreter.php
@@ -27,10 +27,16 @@
$result = $figlet->lineEcho($content);
- if ($this->getEngine()->isTextMode()) {
+ $engine = $this->getEngine();
+
+ if ($engine->isTextMode()) {
return $result;
}
+ if ($engine->isHTMLMailMode()) {
+ return phutil_tag('pre', array(), $result);
+ }
+
return phutil_tag(
'div',
array(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 24, 5:11 AM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6722832
Default Alt Text
D14248.id34399.diff (1 KB)
Attached To
Mode
D14248: Put cows and figlet bannners in <pre> in HTML mail bodies
Attached
Detach File
Event Timeline
Log In to Comment