From 428b1ab1efc7c51eb44f4d5280502b4e3f233094 Mon Sep 17 00:00:00 2001 From: stefanp Date: Mon, 2 Dec 2002 12:19:36 +0000 Subject: [PATCH] type.properties are now parsed, mappings to other prototypes are linked --- DocPrototype/macros.js | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/DocPrototype/macros.js b/DocPrototype/macros.js index b7f852e1..f47045bc 100644 --- a/DocPrototype/macros.js +++ b/DocPrototype/macros.js @@ -113,10 +113,28 @@ function parentPrototype_macro (param) { function typeProperties_macro (param) { var props = this.getTypeProperties (); if (props!=null && props.getContent ()!="" ) { + var sb = new java.lang.StringBuffer (); + // map of all mappings.... + var mappings = props.getMappings (); + // parse type.properties linewise: + var arr = props.getContent ().split ("\n"); + for (var i=0; i' + arr[i] + ''; + } + } + sb.append (arr[i] + "\n"); + } var tmp = new Object (); - tmp.content = props.getContent (); + tmp.content = sb.toString (); var skinname = (param.skinname) ? param.skinname : "typeproperties"; this.renderSkin (skinname, tmp); } } -