[Pkg-javascript-commits] [ltx] 06/80: Imported Upstream version 0.0.4~9ef35a

Jonas Smedegaard dr at jones.dk
Sun Feb 28 10:50:07 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 e6342010e64f4a75e06ccb7eac2e26c22ba5977c
Author: dr at jones.dk <dr at jones.dk>
Date:   Mon Jan 31 19:49:05 2011 +0100

    Imported Upstream version 0.0.4~9ef35a
---
 lib/element.js | 16 +++++++++-------
 package.json   |  4 ++--
 2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/lib/element.js b/lib/element.js
index f6bd973..c583375 100644
--- a/lib/element.js
+++ b/lib/element.js
@@ -151,14 +151,16 @@ Element.prototype.write = function(writer) {
     writer("<");
     writer(this.name);
     for(var k in this.attrs) {
-        writer(" ");
-        writer(k);
-        writer("=\"");
         var v = this.attrs[k];
-        if (typeof v != 'string')
-            v = v.toString();
-        writer(escapeXml(v));
-        writer("\"");
+	if (v || v === '') {
+	    writer(" ");
+            writer(k);
+            writer("=\"");
+            if (typeof v != 'string')
+		v = v.toString();
+            writer(escapeXml(v));
+            writer("\"");
+	}
     }
     if (this.children.length == 0) {
         writer("/>");
diff --git a/package.json b/package.json
index 3e67cd2..f6d477d 100644
--- a/package.json
+++ b/package.json
@@ -1,9 +1,9 @@
 { "name": "ltx"
-,"version": "0.0.2"
+,"version": "0.0.4"
 ,"main": "./lib/index"
 ,"description": "<xml for=\"node.js\">"
 ,"author": "Stephan Maka"
-,"dependencies": {"node-expat": "1.1.0"
+,"dependencies": {"node-expat": ">=1.2.0"
 		 }
 ,"repositories": [{"type": "git"
 		  ,"path": "http://github.com/astro/ltx.git"

-- 
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