+2005-03-07 Helge Hess <helge.hess@opengroupware.org>
+
+ * added some support for -generateXMLStyleEmptyElements (v4.5.69)
+
2005-02-23 Helge Hess <helge.hess@opengroupware.org>
* WEResourceManager.m: lookup web resources in
Library/AppName/WebServerResources, fixed an incorrect reference to
- OGo (w4.5.68)
+ OGo (v4.5.68)
2005-02-17 Helge Hess <helge.hess@opengroupware.org>
# version file
-SUBMINOR_VERSION:=68
+SUBMINOR_VERSION:=69
# v4.5.65 requires libNGObjWeb v4.5.106
[_response appendContentString:img];
[_response appendContentString:@"\" alt=\""];
[_response appendContentString:label];
- [_response appendContentString:@"\" />"];
+ if (_ctx->wcFlags.xmlStyleEmptyElements)
+ [_response appendContentString:@"\" />"];
+ else
+ [_response appendContentString:@"\">"];
[_ctx deleteLastElementIDComponent];
return;
}
[_response appendContentString:img];
[_response appendContentString:@"\" alt=\""];
[_response appendContentString:label];
- [_response appendContentString:@"\" />"];
+ if (_ctx->wcFlags.xmlStyleEmptyElements)
+ [_response appendContentString:@"\" />"];
+ else
+ [_response appendContentString:@"\">"];
}
/* close anker */
if (!_isBlind && _info) {
for (i = 0; i < count; i++) {
NSString *line = [lines objectAtIndex:i];
- if (i != 0) [_response appendContentString:@"<br />"];
+ if (i != 0) {
+ [_response appendContentString:
+ (_ctx->wcFlags.xmlStyleEmptyElements)?@"<br />":@"<br>"];
+ }
[_response appendContentHTMLString:line];
}
[_response appendContentString:@"' title='"];
[_response appendContentHTMLAttributeValue:label];
[_response appendContentString:@"'"];
- [_response appendContentString:@" />"];
+ if (_ctx->wcFlags.xmlStyleEmptyElements)
+ [_response appendContentString:@" />"];
+ else
+ [_response appendContentString:@">"];
}
else {
NSString *fc = [self->fontColor stringValueInComponent:comp];
if ((uri = WEUriOfResource(uri, _ctx))) {
[_response appendContentString:@"<img border=\"0\" alt=\"\" src=\""];
[_response appendContentString:uri];
- [_response appendContentString:@"\" />"];
+ if (_ctx->wcFlags.xmlStyleEmptyElements)
+ [_response appendContentString:@"\" />"];
+ else
+ [_response appendContentString:@"\">"];
}
else
[_response appendContentString:@" "];
[_response appendContentString:@"\""];
}
- [_response appendContentString:@" />"];
+ if (_ctx->wcFlags.xmlStyleEmptyElements)
+ [_response appendContentString:@" />"];
+ else
+ [_response appendContentString:@">"];
}
- (void)_appendLink:(NSString *)_icon resp:(WOResponse *)_response
[_response appendContentString:[_ctx elementID]];
[_response appendContentString:@"\" src=\""];
[_response appendContentString:_icon];
- [_response appendContentString:@"\" />"];
+ if (_ctx->wcFlags.xmlStyleEmptyElements)
+ [_response appendContentString:@"\" />"];
+ else
+ [_response appendContentString:@"\">"];
}
else {
NSString *link;
[_ctx removeObjectForKey:WETreeView_HEADER_MODE];
if (doTable)
[_response appendContentString:@"</tr>"];
- else
+ else if (_ctx->wcFlags.xmlStyleEmptyElements)
[_response appendContentString:@"<br />"];
+ else
+ [_response appendContentString:@"<br>"];
cnt = [self->matrix count];
[self->template appendToResponse:_response inContext:_ctx];
if (doTable)
[_response appendContentString:@"</tr>"];
- else
+ else if (_ctx->wcFlags.xmlStyleEmptyElements)
[_response appendContentString:@"<br />"];
+ else
+ [_response appendContentString:@"<br>"];
[_ctx deleteLastElementIDComponent]; // delete "end"