We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03aaf66 commit 0f246c9Copy full SHA for 0f246c9
test/multi_line.dtd
@@ -0,0 +1,3 @@
1
+<!ENTITY donate_message "multi
2
+line
3
+dtd">
test/test.js
@@ -43,4 +43,10 @@ describe("Common", function() {
43
var str = parser.stringify(object);
44
str.should.equal('<!ENTITY key1 "value1 with \\"text\\" test">\n<!ENTITY key2 "value2\'\'xxx">');
45
});
46
+
47
+ it("should parse multi line entity", function() {
48
+ var raw = fs.readFileSync(__dirname + "/multi_line.dtd", "utf8");
49
+ var result = parser.parse(raw);
50
+ result["donate_message"].should.equal("multi\nline\ndtd");
51
+ });
52
0 commit comments