Re: [AD] Small makedoc fix |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 10 Sep 2001, Grzegorz Adam Hankiewicz <gradha@xxxxxxxxxx> wrote:
>
> The current makedoc tool generates wrong 'back' html links in multifile
> output if the generated index filename is not allegro.html.
...
> diff -u -r1.7 makedoc.c
> --- makedoc.c 2001/07/15 12:17:58 1.7
> +++ makedoc.c 2001/09/10 16:21:20
> @@ -497,8 +497,10 @@
> add_line("", TALLBULLET_FLAG);
> else if ((mytolower(buf[1]=='h')) && (buf[2]=='='))
> strcpy(fileheader, buf+3);
> - else if ((mytolower(buf[1]=='f')) && (buf[2]=='='))
> - strcpy(filefooter, buf+3);
> + else if ((mytolower(buf[1]=='f')) && (buf[2]=='1') && (buf[3]=='='))
> + sprintf(filefooter, "%s%s", buf+4, get_filename(htmlname));
> + else if ((mytolower(buf[1]=='f')) && (buf[2]=='2') && (buf[3]=='='))
> + strcat(filefooter, buf+4);
Maybe keep both types of footers? There are a couple of addons
which depend on makedoc, which might use that feature.