Fix line break in link.

SVN revision: 36569
This commit is contained in:
Kim Woelders 2008-10-10 15:45:46 +00:00
parent 9a10eee2c1
commit 85441fc071
1 changed files with 4 additions and 2 deletions

View File

@ -665,7 +665,7 @@ RenderPage(Window win, int page_num, int w, int h)
int sx, sy, ssx, ssy;
char link_txt[1024];
char link_link[1024];
int spaceflag, oldwc = 0;
int spaceflag, oldwc = 0, linkwc;
wd[0] = 0;
#ifdef USE_WORD_MB
@ -686,6 +686,7 @@ RenderPage(Window win, int page_num, int w, int h)
if ((eot != 1) && spaceflag)
strcat(s, " ");
linkwc = -1;
if (wd[0] == '_')
{
link_txt[0] = '\0';
@ -755,6 +756,7 @@ RenderPage(Window win, int page_num, int w, int h)
if (j < k)
strcat(wd, link_link + j + 1);
islink = 2;
linkwc = wc;
}
else
continue;
@ -944,7 +946,7 @@ RenderPage(Window win, int page_num, int w, int h)
wastext = 1;
TextDraw(&ts, win, txt_disp, x + off, y,
xspace, 99999, 17, justification);
if (islink > 1 && !strcmp(wd, link_txt))
if (islink > 1 && linkwc > wc)
{
islink = 0;
link_link[0] = '\0';