Skip to content

Commit

Permalink
user names weren't colored
Browse files Browse the repository at this point in the history
  • Loading branch information
Vhati committed Sep 29, 2012
1 parent efff574 commit 8267496
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/exporters/subrip.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ def write_snarks(dest_file, snarks, show_time, options={}):
srt_end = srt_delta_str(snark["time"] + show_time)
srt_msg = snark["msg"]

if ("color" in snark and snark["color"] is not None):
srt_msg = color_message(srt_msg, snark["color"])

# SubRip tolerates multiple lines, but not blank lines.
srt_msg = re.sub("\r", "", srt_msg)
srt_msg = re.sub("\n\n+", "\n", srt_msg)
Expand All @@ -69,6 +66,9 @@ def write_snarks(dest_file, snarks, show_time, options={}):

srt_msg = re.sub("\n", "\r\n", srt_msg) # Reintroduce CR's.

if ("color" in snark and snark["color"] is not None):
srt_msg = color_message(srt_msg, snark["color"])

srt_index += 1
dest_file.write(str(srt_index) +"\r\n")
dest_file.write(srt_start +" --> "+ srt_end +"\r\n")
Expand Down

0 comments on commit 8267496

Please sign in to comment.