|
@@ -304,6 +304,11 @@ export default class BookParser {
|
|
bold = true;
|
|
bold = true;
|
|
center = true;
|
|
center = true;
|
|
|
|
|
|
|
|
+ if (curTitle.paraIndex < 0) {
|
|
|
|
+ curTitle = {paraIndex, title: 'Оглавление', inset: sectionLevel, bodyIndex, subtitles: []};
|
|
|
|
+ this.contents.push(curTitle);
|
|
|
|
+ }
|
|
|
|
+
|
|
inSubtitle = true;
|
|
inSubtitle = true;
|
|
curSubtitle = {paraIndex, inset: sectionLevel, title: ''};
|
|
curSubtitle = {paraIndex, inset: sectionLevel, title: ''};
|
|
curTitle.subtitles.push(curSubtitle);
|
|
curTitle.subtitles.push(curSubtitle);
|