STYLE: improve formatting of doxygen filter output

This commit is contained in:
Andrew Heather
2017-11-10 14:53:18 +01:00
committed by Mark Olesen
parent 834d46c64a
commit 6fd27353e4
2 changed files with 46 additions and 49 deletions

View File

@ -14,13 +14,6 @@ s?^License.*?\*\/\
\/\*! \\file %realFilePath%\
<b>Original source file</b> <a href="%filePath%">%fileName%</a>\
\
\
\
\
\
\
\
\
?
/^ /d
}
@ -112,7 +105,8 @@ s/^ /\\typedef /
# the first paragraph will be 'brief' and the others 'detail'
/^Description *$/,/^[^ ]/{
/^Description/c\
<a class="anchor" name="Description"></a> \\brief
<a class="anchor" name="Description"></a>\
\\brief
s/^ //
}
@ -145,7 +139,8 @@ s/^ //
/^SourceFiles *$/,/^$/{
s?SourceFiles?\\par Source files\
<ul><li><a href="%filePath%">%fileName%</a></li>?
<ul>\
<li><a href="%filePath%">%fileName%</a></li> ?
s? *\([a-zA-Z0-9]*\.[a-zA-Z]*\)? <li><a href="%dirName%/\1">\1</a></li>?
s?^$?</ul>?
}
@ -164,7 +159,7 @@ s/.*\*\//\*\//
# Convert \heading in source files to bold font and add some space
s#\\heading \(.*\)#<br><b>\1</b>#g
# add a linebreak
# Add a linebreak
s#\\linebreak#<br>#g
}