]> Shamusworld >> Repos - ardour-manual-diverged/blobdiff - munge.cpp
Merge branch 'master' of http://shamusworld.gotdns.org/git/ardour-manual
[ardour-manual-diverged] / munge.cpp
index 493cdbd7cb8f1cf21ec8b77fc01b4f8309040a06..61e1a6b7f5e1569c79a2e62d0f01b57dd94cebf0 100644 (file)
--- a/munge.cpp
+++ b/munge.cpp
@@ -154,7 +154,9 @@ int main(int argc, char * argv[])
                                        {
                                                if (newFile != NULL)
                                                {
-                                                       fprintf(newFile, "\n{%% children %%}\n\n");
+                                                       if (level == 2)
+                                                               fprintf(newFile, "\n{%% children %%}\n\n");
+
                                                        fclose(newFile);
                                                        newFile = NULL;
                                                }