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 418615 - multiple single-arg format changing directives affect more than one word
multiple single-arg format changing directives affect more than one word
Status: RESOLVED OBSOLETE
Product: doxygen
Classification: Other
Component: general
1.4.x
Other All
: Normal minor
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
[moved_to_github]
: 662745 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-03-15 15:53 UTC by Matthew Woehlke
Modified: 2018-07-30 10:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to (hopefully) fix the problem (5.72 KB, patch)
2007-03-15 18:35 UTC, Matthew Woehlke
none Details | Review

Description Matthew Woehlke 2007-03-15 15:53:15 UTC
Please describe the problem:
When using multiple commands that change the format of the word following the command, more than one word is affected.

Steps to reproduce:
Use more than one formatting command, e.g.:
'this is @c @e some broken text'

Actual results:
The second command works, the first applies to the correct word /and the one after/. That is, the output looks like:
'this is <tt><em>some</em> broken</tt> text'

Expected results:
The commands should stack and apply to only one word, i.e.:
'this is <tt><em>some</em></tt> broken text'

Does this happen every time?
Yes

Other information:
doxygen 1.4.7 modified
Comment 1 Matthew Woehlke 2007-03-15 18:35:11 UTC
Created attachment 84669 [details] [review]
Patch to (hopefully) fix the problem

Well, I think this qualifies as "an ugly hack: :-). There are a number of weird corner cases that need to be handled in addition to handleStyleArgument needing to know to stop eating tokens after it has (indirectly) called itself. I *think* this fixes all cases (and also seems to make doxygen output fewer extraneous spaces).

NOTE: In addition to the docparser.cpp patch, RetVal_Nested needs to be defined in doctokenizer.h.
Comment 2 Dimitri van Heesch 2008-12-21 11:22:59 UTC
I get a lot of additional warnings when I try the patch on doxygen's own documentation (i.e. the user manual), so the patch is not without its problems.
Comment 3 albert 2013-05-26 10:02:37 UTC
*** Bug 662745 has been marked as a duplicate of this bug. ***
Comment 4 André Klapper 2018-07-30 10:48:19 UTC
As discussed in https://github.com/doxygen/doxygen/pull/734 , Doxygen has moved its issue tracking to 

   https://github.com/doxygen/doxygen/issues

All Doxygen tickets in GNOME Bugzilla have been migrated to Github. You can subscribe and participate in the new ticket in Github. You can find the corresponding Github ticket by searching for its Bugzilla ID (number) in Github.

Hence I am closing this GNOME Bugzilla ticket.
Please use the corresponding ticket in Github instead. Thanks a lot!