Skip to content

Commit

Permalink
ANSI tests: add test case for overlapping formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Feb 13, 2016
1 parent 1446e2a commit 24e6c62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nbconvert/filters/tests/test_ansi.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ def test_strip_ansi(self):
('hello\x1b[001;34mthere',
'hello<span class="ansiblue ansibold">there</span>',
r'hello\textcolor{blue}{\textbf{there}}'),
('\x1b[1mhello\x1b[33mworld\x1b[0m',
'<span class="ansibold">hello</span>'
'<span class="ansiyellow ansibold">world</span>',
r'\textbf{hello}\textcolor{brown}{\textbf{world}}'),
)

def test_ansi2html(self):
Expand Down

0 comments on commit 24e6c62

Please sign in to comment.