[Pkg-javascript-commits] [ltx] 22/80: Add patch to not quote ' and " for vanilla text nodes.
Jonas Smedegaard
dr at jones.dk
Sun Feb 28 10:50:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository ltx.
commit 84b7a0b65f48c7fbe48d985a0400dac8419a8e08
Author: Jonas Smedegaard <dr at jones.dk>
Date: Sun Aug 21 10:49:07 2011 +0200
Add patch to not quote ' and " for vanilla text nodes.
---
debian/patches/020110802~cbc7c85.patch | 32 ++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 33 insertions(+)
diff --git a/debian/patches/020110802~cbc7c85.patch b/debian/patches/020110802~cbc7c85.patch
new file mode 100644
index 0000000..8a80401
--- /dev/null
+++ b/debian/patches/020110802~cbc7c85.patch
@@ -0,0 +1,32 @@
+Description: Don't quote ' and " for vanilla text nodes
+Origin: upstream, https://github.com/astro/ltx/commit/cbc7c85
+Author: Astro <astro at spaceboyz.net>
+Last-Date: 2011-08-21
+
+--- a/lib/element.js
++++ b/lib/element.js
+@@ -197,9 +197,9 @@
+ if (child.write)
+ child.write(writer);
+ else if (typeof child === 'string')
+- writer(escapeXml(child));
++ writer(escapeXmlText(child));
+ else
+- writer(escapeXml(child.toString()));
++ writer(escapeXmlText(child.toString()));
+ });
+ writer("</");
+ writer(this.name);
+@@ -216,5 +216,12 @@
+ replace(/'/g, ''');
+ };
+
++function escapeXmlText(s) {
++ return s.
++ replace(/\&/g, '&').
++ replace(/</g, '<').
++ replace(/>/g, '>');
++};
++
+ exports.Element = Element;
+ exports.escapeXml = escapeXml;
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a79fd21
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+020110802~cbc7c85.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git
More information about the Pkg-javascript-commits
mailing list