Page MenuHomePhabricator

D14248.id34399.diff
No OneTemporary

D14248.id34399.diff

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

Mime Type
text/plain
Expires
Sat, Dec 21, 1:09 PM (18 h, 35 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6913180
Default Alt Text
D14248.id34399.diff (1 KB)

Event Timeline