1 Nov 2002 06:32
Disabled conditional sections still generate output
Phil Edwards <phil <at> jaj.com>
2002-11-01 05:32:41 GMT
2002-11-01 05:32:41 GMT
trouble.html tells me I can report a bug to the developers mailing list. So
here we go...
We have a large number of comment blocks that look like this:
/**
* <at> if maint
* <at> brief Some short description.
* <at> param stuff goes here
* <at> return stuff goes here
*
* Longer description here.
* <at> endif
*/
void the_function (the params) {......}
Note that there is no unconditional text at all. And in 1.2.16, nothing at
all would be generated when "maint" was not enabled. And that was excellent.
I've just tried 1.2.18, and the function now shows up in the output, with the
special tags being emitted directly as HTML, but with none of the extra text.
The block above, for example, would have a text section consisting of
<at> brief <at> param <at> return
with "brief <at> param" linked as a mailto:.
What further information can I provide to help figure out what's going wrong?
Phil
(Continue reading)
The result is not a string but can be converted to one using something
like this:
QString linkedTextToString(ILinkedTextIterator *ti)
{
QString result;
ILinkedText *lt=0;
for (ti->toFirst();(lt=ti->current());ti->toNext())
{
switch (lt->kind())
{
case ILinkedText::Kind_Text: // plain text
result+=dynamic_cast<ILT_Text*>(lt)->text()->latin1(); break;
case ILinkedText::Kind_Ref: // a link
result+=dynamic_cast<ILT_Ref *>(lt)->text()->latin1(); break;
}
}
return result;
}
Regards,
Dimitri
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate:
RSS Feed