Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1673083
Masterwork From Distant Lands
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
epriestley
Jun 2 2016, 5:23 PM
2016-06-02 17:23:53 (UTC+0)
Size
726 B
Referenced Files
None
Subscribers
None
Masterwork From Distant Lands
View Options
diff --git a/src/parser/__tests__/PhutilPygmentizeParserTestCase.php b/src/parser/__tests__/PhutilPygmentizeParserTestCase.php
index 81144f6..7c512a0 100644
--- a/src/parser/__tests__/PhutilPygmentizeParserTestCase.php
+++ b/src/parser/__tests__/PhutilPygmentizeParserTestCase.php
@@ -30,6 +30,14 @@ final class PhutilPygmentizeParserTestCase extends PhutilTestCase {
'nc' => 'color: #ff0000',
),
pht('Extra Attribute'));
+
+ $this->tryParser(
+ "<\nspan class=\"mi\">1</span>",
+ "<\nspan style=\"color: #ff0000\">1</span>",
+ array(
+ 'mi' => 'color: #ff0000',
+ ),
+ pht('With Newline'));
}
private function tryParser($input, $expect, array $map, $label) {
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
167077
Default Alt Text
Masterwork From Distant Lands (726 B)
Attached To
Mode
P1987 Masterwork From Distant Lands
Attached
Detach File
Event Timeline
Log In to Comment