diff options
-rw-r--r-- | pygments/formatters/latex.py | 2 | ||||
-rw-r--r-- | pygments/lexers/compiled.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pygments/formatters/latex.py b/pygments/formatters/latex.py index 7bd8e8b9..1d37d11b 100644 --- a/pygments/formatters/latex.py +++ b/pygments/formatters/latex.py @@ -231,7 +231,7 @@ class LatexFormatter(Formatter): else: outfile.write(value) - outfile.write('\n\\end{Verbatim}\n') + outfile.write('\\end{Verbatim}\n') if self.full: realoutfile.write(DOC_TEMPLATE % diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index a247e7e3..d37e0a57 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -134,7 +134,7 @@ class CppLexer(RegexLexer): """ name = 'C++' aliases = ['cpp', 'c++'] - filenames = ['*.cpp', '*.hpp', '*.c++', '*.h++'] + filenames = ['*.cpp', '*.hpp', '*.c++', '*.h++', '*.cc', '*.hh', '*.cxx', '*.hxx'] mimetypes = ['text/x-c++hdr', 'text/x-c++src'] tokens = { |