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 149792 - Mainpage title has wrong style in RTF
Mainpage title has wrong style in RTF
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.3.x
Other Windows
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2004-08-10 08:55 UTC by Frank HJ Cuypers
Modified: 2015-12-30 10:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
src and snapshot (150.27 KB, application/x-bzip-compressed-tar)
2012-01-22 16:45 UTC, Kirill Podlivaev
Details

Description Frank HJ Cuypers 2004-08-10 08:55:49 UTC
Use default doxygen configuration file and a single doc as follows:

/**
@mainpage The mainpage
Blabla
@section sone Section One
Blabla
*/

HTML output is correct. RTF output has the following problems:
- The "The Mainpage" title is output in style 'Body Text' and bold. It shuld be 
style "Heading 1".
- Immediatly after the title an empty paragraph is inserted in "Heading 1".
  - This paragraph should not be there.
  - It looks as if an attempt is made to set the "The mainpage" title in 
the "Heading 1" style, but obviously without success.
Comment 1 Kirill Podlivaev 2012-01-22 15:29:55 UTC
I have same problems on title page in rtf
Can I commit changes to correct it?
Comment 2 Dimitri van Heesch 2012-01-22 15:32:25 UTC
Hi Kirill,

Can you please attach a self-contained example (source+config file in a tar or zip) that allows me to reproduce the problem? also mention the version of doxygen you are using.
Comment 3 Kirill Podlivaev 2012-01-22 16:43:39 UTC
last version from svn ( revision 797 )

In file doxygen-svn/src/rtfgen.cpp:588

t << rtf_Style_Reset << rtf_Style["SubTitle"]->reference << endl; // set to subtitle style
t << "{\\field\\fldedit {\\*\\fldinst AUTHOR \\\\*MERGEFORMAT}{\\fldrslt AUTHOR}}\\par" << endl;
t << "Version " << Config_getString("PROJECT_NUMBER") << "\\par";
t << "{\\field\\fldedit {\\*\\fldinst CREATEDATE \\\\*MERGEFORMAT}"
          "{\\fldrslt CREATEDATE}}\\par"<<endl;


Project number get as "Config_getString("PROJECT_NUMBER")" ,
but other  fields get as not changeable text

result you can see it in 1/snapshot.png in attach
in 1 folder some src
Comment 4 Kirill Podlivaev 2012-01-22 16:45:27 UTC
Created attachment 205821 [details]
src and snapshot
Comment 5 albert 2015-06-14 18:27:35 UTC
I've just pushed a, partial, proposed patch for the problem as indicated by Kirill Podlivaev.
It concerns here the TITLE and the CREATEDATE and the "Version" string. For other items I don't know suitable replacements.

Regarding the problem from Frank HJ Cuypers this looks OK in the output.
Comment 6 albert 2015-06-15 17:54:53 UTC
Pushed also the last changes regarding author and "begin body".

All is in pull request 356 on github
Comment 7 Dimitri van Heesch 2015-07-26 10:02:20 UTC
Thanks, I've merged the pull request
Comment 8 Dimitri van Heesch 2015-12-30 10:19:18 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.11. 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 (preferably in the form of a self-contained example).