diff --git a/ansi2html/converter.py b/ansi2html/converter.py index d164cf0..5947330 100755 --- a/ansi2html/converter.py +++ b/ansi2html/converter.py @@ -90,7 +90,7 @@ -
+
 %(content)s
 
diff --git a/ansi2html/style.py b/ansi2html/style.py index 568a893..fe95b96 100644 --- a/ansi2html/style.py +++ b/ansi2html/style.py @@ -77,7 +77,7 @@ def index2(grey): def get_styles(dark_bg=True, scheme='ansi2html'): css = [ - Rule('#content', white_space='pre-wrap', word_wrap='break-word'), + Rule('.ansi2html-content', white_space='pre-wrap', word_wrap='break-word', display='inline'), Rule('.body_foreground', color=('#000000', '#AAAAAA')[dark_bg]), Rule('.body_background', background_color=('#AAAAAA', '#000000')[dark_bg]), Rule('.body_foreground > .bold,.bold > .body_foreground, body.body_foreground > pre > .bold',