* man2hlp.c (handle_link): Treat link name after & as regular

text.
Suggested by David Martin <dmartina@excite.com>
This commit is contained in:
Pavel Roskin 2002-10-24 13:32:30 +00:00
parent 8085a7d36c
commit 42070839c7
2 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2002-10-24 Andrew V. Samoilov <sav@bcs.zp.ua>
* man2hlp.c (handle_link): Treat link name after \& as regular
text.
Suggested by David Martin <dmartina@excite.com>
2002-10-23 Andrew V. Samoilov <sav@bcs.zp.ua>
* poptconfig.c (configLine): Cast the argument to functions for

View File

@ -593,6 +593,7 @@ handle_link (char *buffer)
{
static char old[80];
int len;
char *amp;
switch (link_flag) {
case 1:
@ -618,8 +619,18 @@ handle_link (char *buffer)
if (len && buffer[len - 1] == '"') {
buffer[--len] = 0;
}
printf_string ("%c%s%c%s%c\n", CHAR_LINK_START, old,
CHAR_LINK_POINTER, buffer, CHAR_LINK_END);
/* "Layout\&)," -- "Layout" should be highlighted, but not ")," */
amp = strstr (old, "\\&");
if (amp) {
*amp = 0;
amp += 2;
} else {
amp = "";
}
printf_string ("%c%s%c%s%c%s\n", CHAR_LINK_START, old,
CHAR_LINK_POINTER, buffer, CHAR_LINK_END, amp);
link_flag = 0;
/* Add to the linked list */
if (current_link) {