I think the following code, to be inserted in NME.c at line 2083, should implement what I've described above.
else
{
// no separate link text or image alt text: write link verbatim
for (k = 0; k < context->linkLength; )
{
if (outputFormat->charHookFun)
CheckError(outputFormat->charHookFun(context->linkOffset + k,
context,
outputFormat->charHookData));
if (outputFormat->encodeCharFun)
CheckError(outputFormat->encodeCharFun(context->src + context->linkOffset,
context->linkLength, &k,
context,
outputFormat->encodeCharData));
else
{
context->dest[context->destLen++] = context->src[context->linkOffset + k];
if (isFirstUTF8Byte(context->src[context->linkOffset + k]))
context->destLenUCS16++;
k++;
context->col++;
}
CheckError(checkWordwrap(context, outputFormat));
}
// skip to end of link, before the end markup
context->srcIndex = j;
}
I think the following code, to be inserted in NME.c at line 2083, should implement what I've described above.
else >linkLength; ) >charHookFun) outputFormat- >charHookFun( context- >linkOffset + k, mat->charHookDa ta)); >encodeCharFun) outputFormat- >encodeCharFun( context- >src + context- >linkOffset, >linkLength, &k, mat->encodeChar Data)); >dest[context- >destLen+ +] = context- >src[context- >linkOffset + k]; e(context- >src[context- >linkOffset + k])) >destLenUCS16+ +; checkWordwrap( context, outputFormat));
{
// no separate link text or image alt text: write link verbatim
for (k = 0; k < context-
{
if (outputFormat-
CheckError(
context,
outputFor
if (outputFormat-
CheckError(
context-
context,
outputFor
else
{
context-
if (isFirstUTF8Byt
context-
k++;
context->col++;
}
CheckError(
}
// skip to end of link, before the end markup
context->srcIndex = j;
}