dlang / ddox

Advanced D documentation engine
MIT License
63 stars 21 forks source link

Symbol links broken when inside first paragraph. #192

Open Abscissa opened 6 years ago

Abscissa commented 6 years ago

When referring to a fully-qualified symbol name (from another module) in backticks (ie See `foo.bar.Symbol` for more): If that's done inside the first paragraph, the generated link often ends up broken - the first part of the package name is doubled.

Ie:

/++
See also `foo.bar.Symbol`.

See also `foo.bar.Symbol`.
+/

In the first paragraph, the link target is incorrectly generated as:

[url_base]/foo/foo/bar/Symbol.html

Instead of:

[url_base]/foo/bar/Symbol.html