Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3750860
D2536.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
592 B
Referenced Files
None
Subscribers
None
D2536.diff
View Options
diff --git a/src/Output/MarkdownOutput.php b/src/Output/MarkdownOutput.php
--- a/src/Output/MarkdownOutput.php
+++ b/src/Output/MarkdownOutput.php
@@ -31,9 +31,7 @@
$propertyMaxLength = max($propertyMaxLength, strlen($key));
$maxValue = max($maxValue, strlen($value));
}
- if ($propertyMaxLength < 8) {
- $propertyMaxLength = 8;
- }
+ $propertyMaxLength = max(8, $propertyMaxLength);
$send[] = '| Property' . str_repeat(' ', $propertyMaxLength - 8) . ' | '
. str_repeat(' ', $maxValue) . ' |';
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 04:04 (20 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250229
Default Alt Text
D2536.diff (592 B)
Attached To
Mode
D2536: Simplify maxPropertyLength computation
Attached
Detach File
Event Timeline
Log In to Comment