mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Fixed bug in line-breaking (sometimes 2nd line would start with .!) - thx Renault :)
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@1192 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
fa459645d8
commit
a74dfc16f1
@ -10,17 +10,18 @@ Subtitle Edit Changelog
|
||||
* Updated Brazilian Portuguese - thx Igor Rückert
|
||||
* Updated Polish language file - thx Adam Malich
|
||||
* Updated Romanian language file - thx dr. Jackson
|
||||
* Better reading of Cavena 890 format
|
||||
* Better reading of Cavena 890 format - thx Victor
|
||||
* Version number now inludes the revision from SVN - thx XhmikosR
|
||||
* Unfocused selection in list view now has more visible color - thx Adem
|
||||
* Import of subs from mp4 files can now read closed captions - thx Zsolt
|
||||
* FIXED:
|
||||
* Bug in linebreaking - thx Renault
|
||||
* Bug (skip of subtitles) in dvd sub ripping - thx kowenant
|
||||
* Minor fix for Blu-ray sup reading
|
||||
* Correct time codes in EBU when reading 24 fps
|
||||
* HD DVD SUP lines are now re-numbered when importing for ocr
|
||||
* Bug in waveform regarding new selection/right-click-menu
|
||||
* Sets default encoding at start when no subtitle is loaded - thx TC
|
||||
* Sets default encoding at start if no subtitle is loaded - thx TC
|
||||
* Can now set single line max length to large values - thx cmaj135
|
||||
* Removed flickering in subtitle list view when typing
|
||||
* Fixed italics in .890 writing - thx victor
|
||||
|
@ -536,12 +536,12 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
if (".!?, ".Contains(s[mid - j].ToString()) && !IsPartOfNumber(s, mid - j) && s.Length > mid + j + 2 && CanBreak(s, mid - j))
|
||||
{
|
||||
splitPos = mid - j;
|
||||
if (".!?".Contains(s[mid - (j + 1)].ToString()))
|
||||
{
|
||||
if (".!?".Contains(s[splitPos].ToString()))
|
||||
splitPos--;
|
||||
if (".!?".Contains(s[splitPos].ToString()))
|
||||
splitPos--;
|
||||
if (".!?".Contains(s[splitPos].ToString()))
|
||||
splitPos--;
|
||||
if (".!?".Contains(s[mid + j + 2].ToString()))
|
||||
splitPos--;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user