summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/code.l b/src/code.l
index 962b328..2a60f6c 100644
--- a/src/code.l
+++ b/src/code.l
@@ -213,7 +213,10 @@ static bool getLink(const char *className,
// exampleFile.data());
if (md->addExample(anchor,exampleName,exampleFile))
{
+ bool latexEnabled = result.isEnabled(OutputGenerator::Latex);
+ if (latexEnabled) result.disable(OutputGenerator::Latex);
result.writeAnchor(anchor);
+ if (latexEnabled) result.enable(OutputGenerator::Latex);
anchorCount++;
}
}
@@ -222,6 +225,7 @@ static bool getLink(const char *className,
if (d)
{
+ //printf("d->getOutputBase()=`%s' name=`%s'\n",d->getOutputFileBase().data(),md->name().data());
result.writeCodeLink(d->getReference(),d->getOutputFileBase(),
md->anchor(),memberName);
return TRUE;
@@ -384,7 +388,7 @@ ID [a-z_A-Z][a-z_A-Z0-9]*
if ((fd=findFileDef(&inputNameDict,yytext,ambig)) &&
fd->isLinkable())
{
- code->writeCodeLink(0,fd->getOutputFileBase(),0,yytext);
+ code->writeCodeLink(fd->getReference(),fd->getOutputFileBase(),0,yytext);
}
else
{