summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-04-08 13:06:12 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-04-08 13:06:12 (GMT)
commitc7ab46f20fa5a7ac219dc6368daeccf381cd47f6 (patch)
tree2ef01c0c4c84830a3bd10cf5fcce0ff9e4bd6aef
parent7ea3bb2e16facf7befa820e4f1ce43872d335554 (diff)
downloadDoxygen-c7ab46f20fa5a7ac219dc6368daeccf381cd47f6.zip
Doxygen-c7ab46f20fa5a7ac219dc6368daeccf381cd47f6.tar.gz
Doxygen-c7ab46f20fa5a7ac219dc6368daeccf381cd47f6.tar.bz2
Link in case of comma at end of URL
When having a text like: ``` https://storm-irit.github.io/OpenGR/, 2017. ``` the corresponding link will contain the comma as well although this is not intended. The original problem comes from CGAL, where we have a bibliography entry: ``` @misc{ cgal:m-ogr-17, author = {Nicolas Mellado and others}, title = {OpenGR: A C++ library for 3D Global Registration}, howpublished = {https://storm-irit.github.io/OpenGR/}, year = {2017} } ```
-rw-r--r--src/doctokenizer.l5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index cfabd31..6a5ed3a 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -637,6 +637,11 @@ REFWORD_NOCV {FILEMASK}|{LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV}
}
return TK_COMMAND_SEL();
}
+<St_Para>{URLPROTOCOL}{URLMASK}/, { // URL,
+ g_token->name=yytext;
+ g_token->isEMailAddr=FALSE;
+ return TK_URL;
+ }
<St_Para>{URLPROTOCOL}{URLMASK}/\. { // URL.
g_token->name=yytext;
g_token->isEMailAddr=FALSE;