Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1987
Masterwork From Distant Lands
Active
Public
Actions
Authored by
epriestley
on Jun 2 2016, 5:23 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F1673083: Masterwork From Distant Lands
Jun 2 2016, 5:23 PM
2016-06-02 17:23:53 (UTC+0)
Subscribers
None
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) {
Event Timeline
epriestley
edited the content of this paste.
(Show Details)
Jun 2 2016, 5:23 PM
2016-06-02 17:23:53 (UTC+0)
epriestley
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
Log In to Comment