GNOME Bugzilla – Bug 654153
Periods are getting embedded into hyperlinks instead of signifying the end of a sentence.
Last modified: 2012-11-18 11:11:41 UTC
In the Doxygen XML output, I noticed that I cannot end a sentence with a URL because the period is placed inside the hyperlink that Doxygen auto-generates. For example, if I have the following sentence in the brief description of my source code... For more information, see http://www.google.com. Then the XML output interprets the sentence as ... "<para>For more information, see <ulink url="http://www.google.com.">http://www.google.com.</ulink></para>" It should be: "<para>For more information, see <ulink url="http://www.google.com">http://www.google.com</ulink>.</para>" Also, is there a way to prevent Doxygen from converting URLs into active hyperlinks? Sometimes I need to refer to URLs that don't exist (i.e. http://host:port) so I don't always want them converted. The only way, as far as I can tell, is to place the URL in quotations.
An other problem with hyper-linking is that when one uses file: followed by a <space> this is also seen as the start of a hyper-link. Example: !> @brief writes info to file: oops subroutine wr() end
Created attachment 192918 [details] [review] Patch for "file:: and for ".: at end This patch fixes the file: problem by specifying that a least one character has to follow the : (i.e replaced * in + in the definition of the URLMASK) Created a new rule for the URL that matches the URL plus a "." but leaves this "." in the input stream.
Thanks Albert, I'll include the patch in the next subversion update. To prevent an automatic link to http://host:port, use %http://host:port
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.7.6. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant.