~bibledit/bibledit/ubuntu-cloud

« back to all changes in this revision

Viewing changes to bb/import_run.cpp

  • Committer: Teus Benschop
  • Date: 2022-08-30 18:42:32 UTC
  • Revision ID: teusjannette@gmail.com-20220830184232-a5bf5fkj14cqdx01
new upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
{
83
83
  if (book && chapter) {}
84
84
  string stylesheet = styles_logic_standard_sheet ();
85
 
  vector <BookChapterData> book_chapter_text = usfm_import (data, stylesheet);
86
 
  for (auto & data : book_chapter_text) {
87
 
    int book_number = data.book;
88
 
    int chapter_number = data.chapter;
89
 
    string chapter_data = data.data;
 
85
  vector <filter::usfm::BookChapterData> book_chapter_text = filter::usfm::usfm_import (data, stylesheet);
 
86
  for (auto & data2 : book_chapter_text) {
 
87
    int book_number = data2.m_book;
 
88
    int chapter_number = data2.m_chapter;
 
89
    string chapter_data = data2.m_data;
90
90
    if (book_number > 0) {
91
91
      bible_logic_store_chapter (bible, book_number, chapter_number, chapter_data);
92
92
      string book_name = Database_Books::getUsfmFromId (book_number);