diff options
author | albert-github <albert.tests@gmail.com> | 2015-06-15 17:53:14 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2015-06-15 17:53:14 (GMT) |
commit | 83f23a4f7f7d1351ef89a4e54db6628a9d582dc5 (patch) | |
tree | 9cf5d21f679c85e6cb5ead2d1440c4ade435ddf3 /src/rtfgen.cpp | |
parent | 077aeb768767e62407abb4759d44671619bc62fd (diff) | |
download | Doxygen-83f23a4f7f7d1351ef89a4e54db6628a9d582dc5.zip Doxygen-83f23a4f7f7d1351ef89a4e54db6628a9d582dc5.tar.gz Doxygen-83f23a4f7f7d1351ef89a4e54db6628a9d582dc5.tar.bz2 |
Bug 149792 - Mainpage title has wrong style in RTF
Removal of "begin body" from text (only visible in Open and Libre Office, not in Word).
Replace AUTHOR by the author specified in rtf configuration file.
Diffstat (limited to 'src/rtfgen.cpp')
-rw-r--r-- | src/rtfgen.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/rtfgen.cpp b/src/rtfgen.cpp index 204522d..1a53e63 100644 --- a/src/rtfgen.cpp +++ b/src/rtfgen.cpp @@ -604,7 +604,11 @@ void RTFGenerator::endIndexSection(IndexSections is) t << "\\par\\par\\par\\par\\par\\par\\par\\par\\par\\par\\par\\par\n"; t << rtf_Style_Reset << rtf_Style["SubTitle"]->reference << endl; // set to subtitle style - t << "{\\field\\fldedit {\\*\\fldinst AUTHOR \\\\*MERGEFORMAT}{\\fldrslt AUTHOR}}\\par" << endl; + if (rtf_author) + t << "{\\field\\fldedit {\\*\\fldinst AUTHOR \\\\*MERGEFORMAT}{\\fldrslt "<< rtf_author << " }}\\par" << endl; + else + t << "{\\field\\fldedit {\\*\\fldinst AUTHOR \\\\*MERGEFORMAT}{\\fldrslt AUTHOR}}\\par" << endl; + t << theTranslator->trVersion() << " " << Config_getString("PROJECT_NUMBER") << "\\par"; t << "{\\field\\fldedit {\\*\\fldinst CREATEDATE \\\\*MERGEFORMAT}" "{\\fldrslt "<< dateToString(FALSE) << " }}\\par"<<endl; @@ -2374,7 +2378,7 @@ static bool preProcessFile(QDir &d,QCString &infName, FTextStream &t, bool bIncl // files because the first line before the body // ALWAYS contains "{\comment begin body}" int len; - do + for(;;) { lineBuf.resize(maxLineLength); if ((len=f.readLine(lineBuf.rawData(),maxLineLength))==-1) @@ -2383,8 +2387,9 @@ static bool preProcessFile(QDir &d,QCString &infName, FTextStream &t, bool bIncl return FALSE; } lineBuf.resize(len+1); + if (lineBuf.find("\\comment begin body")!=-1) break; if (bIncludeHeader) encodeForOutput(t,lineBuf.data()); - } while (lineBuf.find("\\comment begin body")==-1); + } lineBuf.resize(maxLineLength); |