From 2163c97965b8e31ac1af28cfa8c80cf2ed85f31e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 23 Jan 2017 11:02:04 +0000 Subject: Fix failure to parse subrip where there are extra spaces in the time/position line. --- src/subrip_reader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/subrip_reader.cc') diff --git a/src/subrip_reader.cc b/src/subrip_reader.cc index 6fab0ff..45da3ab 100644 --- a/src/subrip_reader.cc +++ b/src/subrip_reader.cc @@ -113,7 +113,7 @@ SubripReader::read (function ()> get_line) /* Further trim this line, removing spaces from the end */ trim_right_if (*line, boost::is_any_of (" ")); - boost::algorithm::split (p, *line, boost::algorithm::is_any_of (" ")); + boost::algorithm::split (p, *line, boost::algorithm::is_any_of (" "), boost::token_compress_on); if (p.size() != 3 && p.size() != 7) { for (int i = 0; i < 2; ++i) { optional ex = get_line (); -- cgit v1.2.3