Entity error fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14837 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-10-24 09:21:05 +00:00
parent 5cf0760ab0
commit d482e457e2
4 changed files with 31 additions and 5 deletions

View file

@ -1961,6 +1961,14 @@ static BOOL snuggleStart(NSString *t)
if (sPos > 0)
{
start = [tmp substringToIndex: sPos];
if ([start isEqualToString: @"["] == YES)
{
start = nil;
}
else if ([start hasSuffix: @"["] == YES)
{
start = [start substringToIndex: [start length] - 1];
}
}
else
{
@ -1969,6 +1977,14 @@ static BOOL snuggleStart(NSString *t)
if (ePos < [tmp length])
{
end = [tmp substringFromIndex: ePos];
if ([end isEqualToString: @"]"] == YES)
{
end = nil;
}
else if ([end hasPrefix: @"]"] == YES)
{
end = [end substringFromIndex: 1];
}
}
else
{
@ -2015,6 +2031,8 @@ static BOOL snuggleStart(NSString *t)
ref = [NSString stringWithFormat:
@"<ref type=\"method\" id=\"%@\" class=\"%@\">",
mName, cName];
sub = [NSString stringWithFormat: @"[%@&nbsp;%@]",
cName, mName];
}
[a insertObject: ref atIndex: l++];
if (sub != nil)

View file

@ -38,10 +38,11 @@
<!--***** Character entities. *****-->
<!-- General purpose characters for gsdoc. -->
<!ENTITY copy "&#38;copy;"> <!-- copyright symbol -->
<!ENTITY tm "&#38;trade;"> <!-- trademark symbol -->
<!ENTITY dots "&#38;dots;"> <!-- ellipsis (...) -->
<!ENTITY nbsp "&#38;nbsp;"> <!-- non breakable space -->
<!ENTITY copy "&#169;"> <!-- copyright symbol -->
<!ENTITY tm "&#174;"> <!-- trademark symbol -->
<!ENTITY reg "&#174;">
<!ENTITY dots "&#8230;"> <!-- ellipsis (...) -->
<!ENTITY nbsp "&#160;"> <!-- non breakable space -->
<!ENTITY amp "&#38;#38;"> <!-- ampersand -->
<!ENTITY apos "&#39;"> <!-- apos -->
<!ENTITY quot "&#34;"> <!-- quotation mark (") -->