IncludeTag and ImageTag should be corrected to interpret given filename relative to filename where they were used. Right now, they are relative to current directory where pasdoc is run. This means that images (or included files) may be incorrectly not found, or may be mistaken with some other file.

For example if you have files

dir1/unit1.pas
dir1/image.png
dir2/unit2.pas
dir2/image.png

and dir1/image.png and dir2/image.png are something different and both unit1.pas abd unit2.pas have @image(image.png) then you're in trouble. Depending on where you will run pasdoc, either

And all three behaviors above are wrong. The only correct behavior is that unit1.pas docs use dir1/image.png and unit2.pas docs use dir2/image.png.

The test above is included in pasdoc sources in tests/todo/ok_different_image_same_filename/.

ToDo/ImageAndIncludeTagRelativeFileNames (last edited 2007-10-28 22:57:03 by localhost)