diff --git a/Manual_tools/src/latex_converter_config/html/cc_manual.sty b/Manual_tools/src/latex_converter_config/html/cc_manual.sty
index d3aab211c6d..28be3863c7b 100644
--- a/Manual_tools/src/latex_converter_config/html/cc_manual.sty
+++ b/Manual_tools/src/latex_converter_config/html/cc_manual.sty
@@ -42,6 +42,7 @@
\newcommand{\lciIfRef}{\ccFalse}
\gdef\lciInsideListOfRefPages{\lcFalse}
+\gdef\lciCloseCommentHeadingTable{}%
\newcommand{\ccUserChapter}[1]{\chapter{#1}\lciChapterPartTocEntry{User Manual}}
\newcommand{\ccRefChapter}[1]{%
@@ -352,8 +353,8 @@
\newcommand{\ccHeading}[1]{\lcRawHtml{
}#1\lcRawHtml{
}}
\newcommand{\ccCommentHeading}[1]{%
\lciCloseCommentHeadingTable%
-\lcRawHtml{| }#1:\lcRawHtml{ | }%
-\gdef\lciCloseCommentHeadingTable{\lcRawHtml{ |
}}%
+\lcRawHtml{| }#1:\lcRawHtml{ | }%
+\gdef\lciCloseCommentHeadingTable{\lcRawHtml{ |
}\gdef\lciCloseCommentHeadingTable{}}%
}
\newcommand{\ccDefinition }{\ccHeading{Definition}}
@@ -870,7 +871,9 @@
{\lciTwoColumnX{#1}}}
\newcommand{\lciTwoColumnX}[2]{\lciGluePostProcessing
\lciTwoColumnLayout{#1}\lciIfEmpty{#C2}
- {\lciTwoColsEndEmpty}{\lciTwoColsSecond #C2\lciTwoColsEnd}%
+ {\lciTwoColsEndEmpty}{\lciTwoColsSecond #C2%
+ \lciCloseCommentHeadingTable%
+ \lciTwoColsEnd}%
\gdef{\lciIfHtmlLinks}{\lcTrue}%
\gdef{\lciIfHtmlIndex}{\lcTrue}%
\lciPushOutput{comments}%
@@ -913,7 +916,6 @@
\newcommand{\lciThreeColumnX}[2]{\lciGluePostProcessing\lciIfEmpty{#C2}
{\lciThreeColumnLayout{#1}{1}\lciThreeColsEndEmpty}
{\lciThreeColumnLayout{#1}{0}%
- \gdef\lciCloseCommentHeadingTable{}%
#C2%
\lciCloseCommentHeadingTable%
\lciThreeColsEnd}%