Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15468251
D21285.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D21285.diff
View Options
diff --git a/src/applications/files/diff/PhabricatorDocumentEngineBlocks.php b/src/applications/files/diff/PhabricatorDocumentEngineBlocks.php
--- a/src/applications/files/diff/PhabricatorDocumentEngineBlocks.php
+++ b/src/applications/files/diff/PhabricatorDocumentEngineBlocks.php
@@ -61,6 +61,7 @@
$lists = $this->lists;
if (count($lists) != 2) {
+ $this->layoutAvailableRowCount = 0;
return array();
}
diff --git a/src/applications/files/document/PhabricatorJupyterDocumentEngine.php b/src/applications/files/document/PhabricatorJupyterDocumentEngine.php
--- a/src/applications/files/document/PhabricatorJupyterDocumentEngine.php
+++ b/src/applications/files/document/PhabricatorJupyterDocumentEngine.php
@@ -63,6 +63,7 @@
$blocks->addBlockList($uref, $u_blocks);
$blocks->addBlockList($vref, $v_blocks);
} catch (Exception $ex) {
+ phlog($ex);
$blocks->addMessage($ex->getMessage());
}
@@ -85,10 +86,14 @@
switch ($utype) {
case 'markdown':
$usource = idx($ucell, 'source');
- $usource = implode('', $usource);
+ if (is_array($usource)) {
+ $usource = implode('', $usource);
+ }
$vsource = idx($vcell, 'source');
- $vsource = implode('', $vsource);
+ if (is_array($vsource)) {
+ $vsource = implode('', $vsource);
+ }
$diff = id(new PhutilProseDifferenceEngine())
->getDiff($usource, $vsource);
@@ -254,7 +259,10 @@
$hash_input = $cell['raw'];
break;
case 'markdown':
- $hash_input = implode('', $cell['source']);
+ $hash_input = $cell['source'];
+ if (is_array($hash_input)) {
+ $hash_input = implode('', $cell['source']);
+ }
break;
default:
$hash_input = serialize($cell);
@@ -367,10 +375,11 @@
$results = array();
foreach ($cells as $cell) {
$cell_type = idx($cell, 'cell_type');
-
if ($cell_type === 'markdown') {
$source = $cell['source'];
- $source = implode('', $source);
+ if (is_array($source)) {
+ $source = implode('', $source);
+ }
// Attempt to split contiguous blocks of markdown into smaller
// pieces.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 4, 10:21 PM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7347438
Default Alt Text
D21285.diff (2 KB)
Attached To
Mode
D21285: Fix two rendering issues with Jupyter notebooks
Attached
Detach File
Event Timeline
Log In to Comment