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 681350 - Code formatting completely broken
Code formatting completely broken
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.1.2
Other Windows
: Normal major
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2012-08-07 06:36 UTC by p_losch
Modified: 2012-08-11 13:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The author.cpp file (247 bytes, text/plain)
2012-08-07 06:36 UTC, p_losch
Details
The same file, but without tabs. (255 bytes, text/plain)
2012-08-07 06:43 UTC, p_losch
Details
Configuration file (249 bytes, application/octet-stream)
2012-08-07 11:23 UTC, p_losch
Details

Description p_losch 2012-08-07 06:36:03 UTC
Created attachment 220509 [details]
The author.cpp file

In V1.8.1.2 code formatting is completely broken (which used to work before).

I've attached an example (pasted into the author.cpp file). 

The following things don't work:

- Doxygen generates a warning during its run
- The @code/@endcode block for class Test1 is not recognized properly
- Comments for class Test2 are turned into code

Also the removal of indentation introduced in V1.8.1.2 is not working properly (I assume the idea was to remove the relative indentation of a block - not to remove all leading spaces for each line?). Right now all lines are stripped of all leading spaces, so any existing formatting is lost.

Please let me know if you need any more details or examples, thanks!
Comment 1 p_losch 2012-08-07 06:43:46 UTC
Created attachment 220511 [details]
The same file, but without tabs.

[Edit] I just found out that part of the problem seems to be related to tabs (we use a tab with of 2). I've attached author2.cpp without tabs and while the result is slightly better it still is broken.
Comment 2 Dimitri van Heesch 2012-08-07 08:11:11 UTC
Please check two things:
1) If setting MARKDOWN_SUPPORT to NO helps
2) If you use a custom CSS stylesheet it probably needs updating (not doing so causes the indentation of code lines to be lost). So try with the default stylesheet first.

For completeness also include the config file you used to test the example.
Comment 3 p_losch 2012-08-07 11:23:46 UTC
Created attachment 220540 [details]
Configuration file

Thanks for the quick reply! 

Since removing the custom CSS stylesheet the indentation works again.

The main problems reported in this thread are fixed by setting MARKDOWN_SUPPORT to NO. As we don't use markdown formatting (yet) everything works again. It might be interesting to examine though if there is a bug in the markdown interpreter.

I've included the (original) author.cfg file.
Comment 4 Dimitri van Heesch 2012-08-07 11:27:19 UTC
There was indeed still a bug in Markdown processing. I'll correct this in the next release.
Comment 5 Dimitri van Heesch 2012-08-11 13:18:19 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.2. 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.