Page MenuHomePhabricator
Paste P1987

Masterwork From Distant Lands
ActivePublic

Authored by epriestley on Jun 2 2016, 5:23 PM.
Tags
None
Referenced Files
F1673083: Masterwork From Distant Lands
Jun 2 2016, 5:23 PM
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 changed the title of this paste from untitled to Masterwork From Distant Lands.