mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Avoid output of the whitespace between elements within <gsdoc>
This commit is contained in:
parent
f898f19b91
commit
11dfe4d330
1 changed files with 20 additions and 3 deletions
|
@ -447,6 +447,24 @@ static NSMutableSet *textNodes = nil;
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Output all the nodes containing xml elements from this one onwards.
|
||||||
|
* Text and entity ref nodes are ignored (to remove whitespace etc
|
||||||
|
* between elements).
|
||||||
|
*/
|
||||||
|
- (void) outputElemList: (GSXMLNode*)node to: (NSMutableString*)buf
|
||||||
|
{
|
||||||
|
while (node != nil)
|
||||||
|
{
|
||||||
|
GSXMLNode *next = [node nextElement];
|
||||||
|
|
||||||
|
if ([node type] == XML_ELEMENT_NODE)
|
||||||
|
{
|
||||||
|
[self outputNode: node to: buf];
|
||||||
|
}
|
||||||
|
node = next;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
- (void) outputIndex: (NSString*)type
|
- (void) outputIndex: (NSString*)type
|
||||||
scope: (NSString*)scope
|
scope: (NSString*)scope
|
||||||
title: (NSString*)title
|
title: (NSString*)title
|
||||||
|
@ -1253,7 +1271,7 @@ static NSMutableSet *textNodes = nil;
|
||||||
([stylesheetURL rangeOfString: @"gsdoc_contents"].length > 0))
|
([stylesheetURL rangeOfString: @"gsdoc_contents"].length > 0))
|
||||||
? YES : NO;
|
? YES : NO;
|
||||||
|
|
||||||
[self outputNodeList: children to: buf];
|
[self outputElemList: children to: buf];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ([name isEqual: @"head"] == YES)
|
else if ([name isEqual: @"head"] == YES)
|
||||||
|
@ -2138,8 +2156,7 @@ static NSMutableSet *textNodes = nil;
|
||||||
LEAVE_POOL
|
LEAVE_POOL
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Output all the nodes from this one onwards ... try to output
|
||||||
* Output all the nodes from this one onwards ... try to output
|
|
||||||
* as text first, if not possible, call the main method to output
|
* as text first, if not possible, call the main method to output
|
||||||
* each node.
|
* each node.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue