Page MenuHomePhabricator

D14248.id.diff
No OneTemporary

D14248.id.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
Oct 17 2024, 5:29 PM (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6722832
Default Alt Text
D14248.id.diff (1 KB)

Event Timeline