Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14362393
D14248.id34400.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.id34400.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
Sat, Dec 21, 12:54 PM (18 h, 15 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6913180
Default Alt Text
D14248.id34400.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