</ul>
-
---
title: Ardour's Interface
part: part
---
+
---
title: Global view
part: chapter
<p class="fixme">Add content</p>
+
---
title: Status Bar
part: chapter
<p class="fixme">Add content</p>
+
---
title: Transport bar and times
part: chapter
<li>the Mode Selector, allowing to switch between Editor and Mixer views, or edit the Preferences.</li>
</ul>
-
-
---
title: The Transport Bar
part: subchapter
---
-
<p>
The <dfn>Transport Bar</dfn> groups all the actions regarding the control of playback and recording.
</p>
</li>
</ul>
-
---
title: Times
part: subchapter
char buffer[1024000], keyword[1024], token[1024];
char title[1024], shortTitle[1024], inclFile[1024], style[1024];
- int level = 0;
+ int level = 0, lastLevel = -1;
int lineCount = 0, startLine, sectionLineCount;
int part = 0, chapter = 0, subchapter = 0;
bool first = true;
}
else if (strcmp(keyword, "part") == 0)
{
+ lastLevel = level;
int len = strlen(token);
if (len == 4)
startLine = lineCount;
+ // Cleanup our chapter content
+ if (lastLevel == 1)
+ {
+ if (newFile != NULL)
+ {
+ fprintf(newFile, "\n{%% children %%}\n\n");
+ fclose(newFile);
+ newFile = NULL;
+ }
+ }
+
if (level == 0)
{
// Parts & chapters don't have any content...
// Make the file expected at this level...
sprintf(temp, "%s.html", level2File);
- FILE * tfp = fopen(temp, "w");
- fprintf(tfp, "---\n");
- fprintf(tfp, "title: %s\n", title);
+ newFile = fopen(temp, "w");
+ fprintf(newFile, "---\n");
+ fprintf(newFile, "title: %s\n", title);
if (strlen(shortTitle) > 0)
- fprintf(tfp, "menu_title: %s\n", shortTitle);
+ fprintf(newFile, "menu_title: %s\n", shortTitle);
- fprintf(tfp, "---\n");
- fprintf(tfp, "\n{%% children %%}\n\n");
- fclose(tfp);
+ fprintf(newFile, "---\n\n");
+// fprintf(tfp, "\n{%% children %%}\n\n");
+// fclose(tfp);
}
else if (level == 2)
{
}
else
{
- if ((level == 2) && (newFile != NULL))
+ if (((level == 1) || (level == 2)) && (newFile != NULL))
fprintf(newFile, "%s\n", buffer);
}
}