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:
CaS 2002-10-24 09:21:05 +00:00
parent 93168d9fe4
commit a2e8e98fc3
4 changed files with 31 additions and 5 deletions

View file

@ -1,3 +1,10 @@
2002-10-22 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/AGSOutput.m: ([-split:]) In links generated from class and
method specifications in square brackets, place a space between the
class and the method name.
* Tools/gsdoc-1_0_0.dtd: Corrected minor entity errors.
2002-10-21 Adam Fedor <fedor@gnu.org> 2002-10-21 Adam Fedor <fedor@gnu.org>
* Headers/gnustep/unicode/thai.h: New file. * Headers/gnustep/unicode/thai.h: New file.

View file

@ -119,7 +119,7 @@ GS_EXPORT const char* GSDebugAllocationListAll();
/** /**
* Starts recording all allocated objects of a certain class.<br /> * Starts recording all allocated objects of a certain class.<br />
* Use with extreme carre ... this could slow down your application * Use with extreme care ... this could slow down your application
* enormously. * enormously.
*/ */
GS_EXPORT void GSDebugAllocationActiveRecordingObjects(Class c); GS_EXPORT void GSDebugAllocationActiveRecordingObjects(Class c);

View file

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

View file

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