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
3cb96306
Commit
3cb96306
authored
Aug 08, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 732768 - nested html tables cause pdflatex to hang (1.8.4 and 1.8.6)
parent
7a119638
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
6 deletions
+27
-6
doxygen.sty
src/doxygen.sty
+10
-0
latexdocvisitor.cpp
src/latexdocvisitor.cpp
+17
-6
No files found.
src/doxygen.sty
View file @
3cb96306
...
...
@@ -434,6 +434,16 @@
}
%
{
\end{xtabular*}
\par
}
%
% Used by nested tables
\newenvironment
{
TabularNC
}
[1]
%
{
%
\setlength
{
\tmplength
}
%
{
\linewidth
/(#1)-
\tabcolsep*
2-
\arrayrulewidth*
(#1+1)/(#1)
}
%
\par
\begin{tabular*}
{
\linewidth
}
%
{
*
{
#1
}{
|>
{
\PBS\raggedright\hspace
{
0pt
}}
p
{
\the\tmplength
}}
|
}
%
}
%
{
\end{tabular*}
\par
}
%
% Used for member group headers
\newenvironment
{
Indent
}{
%
\begin{list}
{}{
%
...
...
src/latexdocvisitor.cpp
View file @
3cb96306
...
...
@@ -809,21 +809,32 @@ void LatexDocVisitor::visitPost(DocHtmlDescData *)
{
}
static
const
char
*
getTableName
(
const
DocNode
*
n
)
{
bool
isNested
=
FALSE
;
while
(
n
&&
!
isNested
)
{
isNested
=
n
->
kind
()
==
DocNode
::
Kind_HtmlTable
;
n
=
n
->
parent
();
}
return
isNested
?
"TabularNC"
:
"TabularC"
;
}
void
LatexDocVisitor
::
visitPre
(
DocHtmlTable
*
t
)
{
m_rowSpans
.
clear
();
m_insideTable
=
TRUE
;
if
(
m_hide
)
return
;
if
(
t
->
hasCaption
())
if
(
t
->
hasCaption
())
{
m_t
<<
"
\\
begin{table}[h]"
;
}
m_t
<<
"
\\
begin{
TabularC
}{"
<<
t
->
numColumns
()
<<
"}
\n
"
;
m_t
<<
"
\\
begin{
"
<<
getTableName
(
t
->
parent
())
<<
"
}{"
<<
t
->
numColumns
()
<<
"}
\n
"
;
m_numCols
=
t
->
numColumns
();
m_t
<<
"
\\
hline
\n
"
;
}
void
LatexDocVisitor
::
visitPost
(
DocHtmlTable
*
t
)
void
LatexDocVisitor
::
visitPost
(
DocHtmlTable
*
t
)
{
m_insideTable
=
FALSE
;
if
(
m_hide
)
return
;
...
...
@@ -833,14 +844,14 @@ void LatexDocVisitor::visitPost(DocHtmlTable *t)
}
else
{
m_t
<<
"
\\
end{
TabularC
}
\n
"
;
m_t
<<
"
\\
end{
"
<<
getTableName
(
t
->
parent
())
<<
"
}
\n
"
;
}
}
void
LatexDocVisitor
::
visitPre
(
DocHtmlCaption
*
)
void
LatexDocVisitor
::
visitPre
(
DocHtmlCaption
*
c
)
{
if
(
m_hide
)
return
;
m_t
<<
"
\\
end{
TabularC
}
\n\\
centering
\n\\
caption{"
;
m_t
<<
"
\\
end{
"
<<
getTableName
(
c
->
parent
())
<<
"
}
\n\\
centering
\n\\
caption{"
;
}
void
LatexDocVisitor
::
visitPost
(
DocHtmlCaption
*
)
...
...
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