mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
Backport r33142 to branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33156 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
00542a5c62
commit
c5721fdd50
@ -219,7 +219,11 @@ docstring const BibTeXInfo::getAbbreviatedAuthor() const
|
||||
return docstring();
|
||||
|
||||
docstring authors;
|
||||
split(opt, authors, '(');
|
||||
docstring const remainder = trim(split(opt, authors, '('));
|
||||
if (remainder.empty())
|
||||
// in this case, we didn't find a "(",
|
||||
// so we don't have author (year)
|
||||
return docstring();
|
||||
return authors;
|
||||
}
|
||||
|
||||
@ -256,9 +260,12 @@ docstring const BibTeXInfo::getYear() const
|
||||
return docstring();
|
||||
|
||||
docstring authors;
|
||||
docstring const tmp = split(opt, authors, '(');
|
||||
docstring tmp = split(opt, authors, '(');
|
||||
if (tmp.empty())
|
||||
// we don't have author (year)
|
||||
return docstring();
|
||||
docstring year;
|
||||
split(tmp, year, ')');
|
||||
tmp = split(tmp, year, ')');
|
||||
return year;
|
||||
}
|
||||
|
||||
|
@ -104,6 +104,8 @@ What's new
|
||||
|
||||
- LaTeX import (tex2lyx) now also recognizes the document language Kazakh.
|
||||
|
||||
- Fixed detection of "Author (Year)" references when not using BibTeX.
|
||||
|
||||
|
||||
* USER INTERFACE
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user