Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
096c5944
Commit
096c5944
authored
Jul 13, 2013
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The language specifier in e.g. \code{.py} was ignored for the XML output
parent
5dd0b01a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
xmldocvisitor.cpp
src/xmldocvisitor.cpp
+7
-2
No files found.
src/xmldocvisitor.cpp
View file @
096c5944
...
@@ -246,12 +246,17 @@ void XmlDocVisitor::visit(DocStyleChange *s)
...
@@ -246,12 +246,17 @@ void XmlDocVisitor::visit(DocStyleChange *s)
void
XmlDocVisitor
::
visit
(
DocVerbatim
*
s
)
void
XmlDocVisitor
::
visit
(
DocVerbatim
*
s
)
{
{
if
(
m_hide
)
return
;
if
(
m_hide
)
return
;
SrcLangExt
langExt
=
getLanguageFromFileName
(
m_langExt
);
QCString
lang
=
m_langExt
;
if
(
!
s
->
language
().
isEmpty
())
// explicit language setting
{
lang
=
s
->
language
();
}
SrcLangExt
langExt
=
getLanguageFromFileName
(
lang
);
switch
(
s
->
type
())
switch
(
s
->
type
())
{
{
case
DocVerbatim
:
:
Code
:
// fall though
case
DocVerbatim
:
:
Code
:
// fall though
m_t
<<
"<programlisting>"
;
m_t
<<
"<programlisting>"
;
Doxygen
::
parserManager
->
getParser
(
m_langExt
)
Doxygen
::
parserManager
->
getParser
(
lang
)
->
parseCode
(
m_ci
,
s
->
context
(),
s
->
text
(),
langExt
,
->
parseCode
(
m_ci
,
s
->
context
(),
s
->
text
(),
langExt
,
s
->
isExample
(),
s
->
exampleFile
());
s
->
isExample
(),
s
->
exampleFile
());
m_t
<<
"</programlisting>"
;
m_t
<<
"</programlisting>"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment