Skip to content

Commit 43bdc95

Browse files
committed
issue #10956 Bad indent for list embedded in <dd> in man output
1 parent 85571a4 commit 43bdc95

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/mandocvisitor.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ void ManDocVisitor::operator()(const DocPara &p)
498498
)
499499
{
500500
if (!m_firstCol) m_t << "\n";
501-
m_t << ".PP\n";
501+
m_t << "\n.PP\n";
502502
m_firstCol=TRUE;
503503
}
504504
}
@@ -707,26 +707,29 @@ void ManDocVisitor::operator()(const DocHtmlListItem &li)
707707
void ManDocVisitor::operator()(const DocHtmlDescList &dl)
708708
{
709709
if (m_hide) return;
710+
m_indent+=2;
710711
visitChildren(dl);
712+
m_indent-=2;
711713
if (!m_firstCol) m_t << "\n";
712-
m_t << ".PP\n";
714+
m_t << "\n.PP\n";
713715
m_firstCol=TRUE;
714716
}
715717

716718
void ManDocVisitor::operator()(const DocHtmlDescTitle &dt)
717719
{
718720
if (m_hide) return;
719721
if (!m_firstCol) m_t << "\n";
720-
m_t << ".IP \"\\fB";
722+
m_t << "\n.PP";
723+
m_t << "\n.IP \"\\fB";
721724
m_firstCol=FALSE;
722725
visitChildren(dt);
723-
m_t << "\\fP\" 1c\n";
724-
m_firstCol=TRUE;
725726
}
726727

727728
void ManDocVisitor::operator()(const DocHtmlDescData &dd)
728729
{
729-
if (!m_firstCol) m_t << "\n.IP \"\" 1c\n";
730+
if (!m_firstCol) m_t << "\n";
731+
m_t << ".IP \"\" 1c\n";
732+
m_firstCol=TRUE;
730733
visitChildren(dd);
731734
}
732735

0 commit comments

Comments
 (0)