~ubuntu-branches/ubuntu/raring/kbibtex/raring

« back to all changes in this revision

Viewing changes to src/libkbibtexio/fileimporterbibtex.cpp

  • Committer: Package Import Robot
  • Author(s): Bastien Roucariès
  • Date: 2012-11-05 11:46:07 UTC
  • mfrom: (2.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20121105114607-vu50yjnfcs0dxe8o
Tags: 0.4-3
* Adopt kbibtex (Closes: #654750)
* Bug fix: "New kbibtex destroys localfile information" (Closes: #644024).
* Bug fix: "Spelling error in control file (ressources >> resources) in 
control file, thanks to Clayton Casciato (Closes: #687353).

Show diffs side-by-side

added added

removed removed

Lines of Context:
534
534
            if (isStringKey)
535
535
                value.append(new MacroKey(text));
536
536
            else {
537
 
                QList<KUrl> urls;
538
 
                FileInfo::urlsInText(text, false, QString::null, urls);
539
 
                for (QList<KUrl>::ConstIterator it = urls.constBegin(); it != urls.constEnd(); ++it)
540
 
                    value.append(new VerbatimText((*it).pathOrUrl()));
 
537
                /// Assumption: in fields like Url or LocalFile, file names are separated by ; or ,
 
538
                static const QRegExp semicolonSpace = QRegExp("[;]\\s*");
 
539
                QStringList fileList = text.split(semicolonSpace, QString::SkipEmptyParts);
 
540
                foreach(const QString &filename, fileList) {
 
541
                    value.append(new VerbatimText(filename));
 
542
                }
541
543
            }
542
544
        } else if (iKey == Entry::ftMonth) {
543
545
            if (isStringKey) {