Skip to content

Commit

Permalink
Merge pull request ipython#5308 from minrk/HTML
Browse files Browse the repository at this point in the history
fix HTML capitalization in Highlight2HTML
  • Loading branch information
ellisonbg committed Mar 10, 2014
2 parents 092adfd + 97ba0bf commit 7b937a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion IPython/nbconvert/exporters/templateexporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
'ansi2html': filters.ansi2html,
'filter_data_type': filters.DataTypeFilter,
'get_lines': filters.get_lines,
'highlight2html': filters.Highlight2Html,
'highlight2html': filters.Highlight2HTML,
'highlight2latex': filters.Highlight2Latex,
'ipython2python': filters.ipython2python,
'posix_path': filters.posix_path,
Expand Down
4 changes: 2 additions & 2 deletions IPython/nbconvert/filters/highlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
#-----------------------------------------------------------------------------

__all__ = [
'Highlight2Html',
'Highlight2HTML',
'Highlight2Latex'
]


class Highlight2Html(NbConvertBase):
class Highlight2HTML(NbConvertBase):

def __call__(self, source, language=None, metadata=None):
"""
Expand Down
8 changes: 4 additions & 4 deletions IPython/nbconvert/filters/tests/test_highlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
#-----------------------------------------------------------------------------

from ...tests.base import TestsBase
from ..highlight import Highlight2Html, Highlight2Latex
from ..highlight import Highlight2HTML, Highlight2Latex
from IPython.config import Config
import xml

#-----------------------------------------------------------------------------
# Class
#-----------------------------------------------------------------------------

highlight2html = Highlight2Html()
highlight2html = Highlight2HTML()
highlight2latex = Highlight2Latex()
c = Config()
c.Highlight2Html.default_language='ruby'
highlight2html_ruby = Highlight2Html(config=c)
c.Highlight2HTML.default_language='ruby'
highlight2html_ruby = Highlight2HTML(config=c)

class TestHighlight(TestsBase):
"""Contains test functions for highlight.py"""
Expand Down

0 comments on commit 7b937a3

Please sign in to comment.