]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
Whitespace cosmetics
[lyx.git] / src / LaTeXFeatures.cpp
index bf8cf24f0744fdfec7856af72a829f7cb057863f..92e48293cd28d15d4bf872f5dabef6cb60e5476f 100644 (file)
@@ -423,6 +423,8 @@ static docstring const lyxmintcaption_def = from_ascii(
        "\\long\\def\\lyxmintcaption[#1]#2{%\n"
        "  \\ifx#1t\\vskip\\baselineskip\\fi%\n"
        "  \\refstepcounter{listing}\\noindent%\n"
+       "  \\addcontentsline{lol}{listing}%\n"
+       "  {\\protect\\numberline{\\thelisting}{\\ignorespaces #2}}%\n"
        "  \\setbox\\@tempboxa\\hbox{\\listingscaption~\\thelisting: #2}%\n"
        "  \\ifdim \\wd\\@tempboxa >\\linewidth%\n"
        "  \\parbox[t]{\\linewidth}{\\unhbox\\@tempboxa}\\else%\n"
@@ -680,7 +682,7 @@ TexString getSnippets(std::list<TexString> const & list)
        return snip.release();
 }
 
-} //anon namespace
+} // namespace
 
 
 void LaTeXFeatures::addPreambleSnippet(TexString ts, bool allow_dupes)
@@ -995,7 +997,7 @@ int const nb_bibliofeatures = sizeof(bibliofeatures) / sizeof(char const *);
 
 int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);
 
-}
+} // namespace
 
 
 string const LaTeXFeatures::getColorOptions() const
@@ -1768,7 +1770,7 @@ docstring const i18npreamble(docstring const & templ, Language const * lang,
        return from_utf8(preamble);
 }
 
-}
+} // namespace
 
 
 docstring const LaTeXFeatures::getTClassI18nPreamble(bool use_babel,