Browse Source

luaxml: Updated (090910 -> 101012)

user/chris/test/early-mdev
Alejandro Mery 14 years ago
parent
commit
ef98eeaafe
  1. 37
      lua/luaxml/empty_attributes.patch
  2. 6
      lua/luaxml/luaxml.desc

37
lua/luaxml/empty_attributes.patch

@ -1,37 +0,0 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../luaxml/empty_attributes.patch
# Copyright (C) 2010 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
From: 张增波 <zengbo.zhang@gmail.com>
Date: 2010/9/25
Subject: [patch] LuaXml can't interpret empty attribute
To: gerald.franz@viremo.de
--- ./LuaXML_lib_unix.c 2010-09-25 15:10:19.000000000 +0800
+++ ./LuaXML_lib.c 2010-09-25 15:04:26.000000000 +0800
@@ -319,7 +319,12 @@
if(token[sepPos]) { // regular attribute
const char* aVal =token+sepPos+2;
lua_pushlstring(L, token, sepPos);
- Xml_pushDecode(L, aVal, strlen(aVal)-1);
+ if ( strlen(aVal) == 1 ) {
+ Xml_pushDecode(L, "", 0);
+ }
+ else{
+ Xml_pushDecode(L, aVal, strlen(aVal)-1);
+ }
lua_settable(L, -3);
}
}

6
lua/luaxml/luaxml.desc

@ -2,7 +2,7 @@
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY]
[COPY] Filename: package/.../luaxml/luaxml.desc
[COPY] Copyright (C) 2009 The OpenSDE Project
[COPY] Copyright (C) 2009 - 2010 The OpenSDE Project
[COPY]
[COPY] More information can be found in the files COPYING and README.
[COPY]
@ -35,7 +35,7 @@
[L] MIT
[S] Stable
[V] 090910
[V] 101012
[P] X -?---5---9 800.000
[D] 1500807208 LuaXML_090910.zip http://www.viremo.de/LuaXML/
[D] 3520241880 LuaXML_101012.zip http://www.viremo.de/LuaXML/

Loading…
Cancel
Save