After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 571561 - No space between * and tag (e.g. \endcode) makes parser misbehave
No space between * and tag (e.g. \endcode) makes parser misbehave
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.2-SVN
Other All
: Normal minor
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2009-02-12 22:57 UTC by Mike Youell
Modified: 2013-05-19 12:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
PATCH: fix proble with asterisk without space following it (1.90 KB, patch)
2013-01-27 17:52 UTC, albert
none Details | Review

Description Mike Youell 2009-02-12 22:57:21 UTC
Please describe the problem:
If there is no space between the *'s and a tag (e.g. \endcode) then the parser doesn't behave correctly (i.e. it displays an extra start in the documented code block).

/**
 * Example usage:
 *\code
 * $bf = new CCryptBlowfish('some secret key!');
 * $encrypted = $bf->Encrypt('this is some example plain text');
 * $plaintext = $bf->Decrypt($encrypted);
 * echo "plain text: $plaintext";
 *\endcode
 */

Steps to reproduce:

/**
 * Example usage:
 *\code
 * $bf = new CCryptBlowfish('some secret key!');
 * $encrypted = $bf->Encrypt('this is some example plain text');
 * $plaintext = $bf->Decrypt($encrypted);
 * echo "plain text: $plaintext";
 *\endcode
 */

The above code produces an extra "*" at the end of the documented code.


This code is ok:

/**
 * Example usage:
 * \code
 * $bf = new CCryptBlowfish('some secret key!');
 * $encrypted = $bf->Encrypt('this is some example plain text');
 * $plaintext = $bf->Decrypt($encrypted);
 * echo "plain text: $plaintext";
 * \endcode
 */

Actual results:
You see an extra start "*" in the documented code block.

Expected results:
No extra star.

Does this happen every time?
yes

Other information:
Comment 1 Dimitri van Heesch 2012-11-18 11:07:16 UTC
Changed version 'latest' to '1.8.2-SVN' so I can remove 'latest' as an option as it is a moving target.
Comment 2 albert 2013-01-27 17:52:33 UTC
Created attachment 234556 [details] [review]
PATCH: fix proble with asterisk without space following it

This patch fixes the problem as indicated in the bug report as well as other problems where directly after an asterisk there is no space.
Comment 3 Dimitri van Heesch 2013-02-23 10:06:45 UTC
Thanks, I'll include the patch in the next subversion update.
Comment 4 Dimitri van Heesch 2013-05-19 12:35:48 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.4. 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.