2
0
Nicolas Cannasse 19 жил өмнө
parent
commit
d62fa2731a

+ 1 - 1
genxml.ml

@@ -38,7 +38,7 @@ let gen_path (p,n) priv =
 
 let gen_doc s =
 	let f = if String.contains s '<' || String.contains s '>' || String.contains s '&' then	cdata else pcdata in
-	node "haxe:doc" [] [f s]
+	node "doc" [] [f s]
 
 let gen_doc_opt d =
 	match d with

+ 3 - 3
std/tools/haxedoc/Main.hx

@@ -416,7 +416,7 @@ class Main {
 		case "class":
 			c = new DocClass(path);
 			for( m in x.elements() ) {
-				if( m.nodeName == "haxe:doc" ) {
+				if( m.nodeName == "doc" ) {
 					c.doc = docFormat(m.firstChild().nodeValue);
 					continue;
 				}
@@ -440,13 +440,13 @@ class Main {
 			var e = new DocEnum(path);
 			c = e;
 			for( m in x.elements() ) {
-				if( m.nodeName == "haxe:doc" ) {
+				if( m.nodeName == "doc" ) {
 					c.doc = docFormat(m.firstChild().nodeValue);
 					continue;
 				}
 				var l = Lambda.array(m.elements());
 				var last = l[l.length-1];
-				var doc = if( last == null || last.nodeName != "haxe:doc" ) null else docFormat(l.pop().firstChild().nodeValue);
+				var doc = if( last == null || last.nodeName != "doc" ) null else docFormat(l.pop().firstChild().nodeValue);
 				var t = if( m.get("a") == null ) null else {
 					var names = m.get("a").split(":");
 					var params = Lambda.amap(names,function(name) {