Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F8693
SubPageList.class.php.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 22 2014, 12:06 AM
2014-11-22 00:06:45 (UTC+0)
Size
945 B
Referenced Files
None
Subscribers
None
SubPageList.class.php.patch
View Options
Index: SubPageList.class.php
===================================================================
--- SubPageList.class.php (revision 100841)
+++ SubPageList.class.php (working copy)
@@ -344,16 +344,19 @@
$bullet = ''; // String to render between `$start' and item
// (may be rendered few times, depends on nesting level).
$sep = ''; // String to render between two items.
+ $end = ''; // String to render once at the end of the last item.
$items = array();
switch ( $parameters['format'] ) {
case 'ol' : case 'ordered' :
$start = "\n";
$bullet = '#';
+ $end = "\n";
break;
case 'ul' : case 'unordered' :
$start = "\n";
$bullet = '*';
+ $end = "\n";
break;
case 'list' : case 'bar' :
$sep = $parameters['separator'];
@@ -429,7 +432,7 @@
}
}
- return implode( $sep, $items );
+ return count( $items ) > 0 ? implode( $sep, $items ) . $end : '';
}
/**
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8210
Default Alt Text
SubPageList.class.php.patch (945 B)
Attached To
Mode
T34131: #subpagelist: Incorrect HTML code.
Attached
Detach File
Event Timeline
Log In to Comment