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
8295d3ff
Commit
8295d3ff
authored
May 30, 2013
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 700646 - XML output does not handle HTML entities in titles
parent
1e7e76af
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
latexdocvisitor.cpp
src/latexdocvisitor.cpp
+3
-3
xmldocvisitor.cpp
src/xmldocvisitor.cpp
+1
-1
xmlgen.cpp
src/xmlgen.cpp
+5
-3
No files found.
src/latexdocvisitor.cpp
View file @
8295d3ff
...
...
@@ -142,9 +142,9 @@ void LatexDocVisitor::visit(DocSymbol *s)
case
DocSymbol
:
:
DoubleColon
:
m_t
<<
"::"
;
break
;
case
DocSymbol
:
:
Percent
:
m_t
<<
"
\\
%"
;
break
;
case
DocSymbol
:
:
Pipe
:
m_t
<<
"$|$"
;
break
;
case
DocSymbol
:
:
Copy
:
m_t
<<
"
\\
copyright"
;
break
;
case
DocSymbol
:
:
Tm
:
m_t
<<
"
\\
texttrademark"
;
break
;
case
DocSymbol
:
:
Reg
:
m_t
<<
"
\\
textregistered"
;
break
;
case
DocSymbol
:
:
Copy
:
m_t
<<
"
\\
copyright
{}
"
;
break
;
case
DocSymbol
:
:
Tm
:
m_t
<<
"
\\
texttrademark
{}
"
;
break
;
case
DocSymbol
:
:
Reg
:
m_t
<<
"
\\
textregistered
{}
"
;
break
;
case
DocSymbol
:
:
Apos
:
m_t
<<
"'"
;
break
;
case
DocSymbol
:
:
Quot
:
m_t
<<
"
\"
"
;
break
;
case
DocSymbol
:
:
Lsquo
:
m_t
<<
"`"
;
break
;
...
...
src/xmldocvisitor.cpp
View file @
8295d3ff
...
...
@@ -587,7 +587,7 @@ void XmlDocVisitor::visitPre(DocSection *s)
if
(
!
s
->
anchor
().
isEmpty
())
m_t
<<
"_1"
<<
s
->
anchor
();
m_t
<<
"
\"
>"
<<
endl
;
m_t
<<
"<title>"
;
filter
(
s
->
title
(
));
filter
(
convertCharEntitiesToUTF8
(
s
->
title
()
));
m_t
<<
"</title>"
<<
endl
;
}
...
...
src/xmlgen.cpp
View file @
8295d3ff
...
...
@@ -1838,20 +1838,22 @@ static void generateXMLForPage(PageDef *pd,FTextStream &ti,bool isExample)
QCString
title
;
if
(
!
pd
->
title
().
isEmpty
()
&&
pd
->
title
().
lower
()
!=
"notitle"
)
{
title
=
filterTitle
(
Doxygen
::
mainPage
->
title
(
));
title
=
filterTitle
(
convertCharEntitiesToUTF8
(
Doxygen
::
mainPage
->
title
()
));
}
else
{
title
=
Config_getString
(
"PROJECT_NAME"
);
}
t
<<
" <title>"
<<
convertToXML
(
title
)
<<
"</title>"
<<
endl
;
t
<<
" <title>"
<<
convertToXML
(
convertCharEntitiesToUTF8
(
title
))
<<
"</title>"
<<
endl
;
}
else
{
SectionInfo
*
si
=
Doxygen
::
sectionDict
->
find
(
pd
->
name
());
if
(
si
)
{
t
<<
" <title>"
<<
convertToXML
(
si
->
title
)
<<
"</title>"
<<
endl
;
t
<<
" <title>"
<<
convertToXML
(
convertCharEntitiesToUTF8
(
si
->
title
))
<<
"</title>"
<<
endl
;
}
}
writeInnerPages
(
pd
->
getSubPages
(),
t
);
...
...
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