Skip to content

Commit

Permalink
No BR at the end of inline highlighting.
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Nov 12, 2015
1 parent 4d4dcfe commit 4d872b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion st3/mdpopups/st_code_highlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
INLINE_BODY_START = '<code class="inline-highlight">'
BODY_START = '<div class="highlight"><pre>'
LINE = '%(code)s<br>'
INLINE_LINE = '%(code)s'
CODE = '<span %(class)sstyle="color: %(color)s;">%(content)s</span>'
CODEBG = '<span %(class)sstyle="background-color: %(highlight)s; color: %(color)s;">%(content)s</span>'
BODY_END = '</pre></div>\n'
Expand Down Expand Up @@ -75,7 +76,7 @@ def setup_print_block(self, curr_sel, multi=False):
def print_line(self, line, num):
"""Print the line."""

html_line = LINE % {
html_line = (INLINE_LINE if self else LINE) % {
"code": line,
}

Expand Down

0 comments on commit 4d872b2

Please sign in to comment.