[MPlayer-cvslog] r19618 - trunk/libass/ass.c

Evgeniy Stepanov eugeni.stepanov at gmail.com
Fri Sep 1 22:11:25 CEST 2006

On Friday 01 September 2006 18:19, Rich Felker wrote:
> what about if ((last = strchr(event->Text, '\r'))) *last = 0;
> that's the way i usually do it..
> if you're worried about embedded \r not at eol you could add
> &&!last[1] to the conditional.

This won't remove the last \r if there is one more in the middle.
\r in the middle of subtitle text is meaningless, but not explicitly 
prohibited, so it's better to remove exactly the last one, keeping the 

More information about the MPlayer-cvslog mailing list