File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -123,9 +123,14 @@ auto parseToc(string text)
123
123
{
124
124
auto entry = TocEntry(id, name);
125
125
if (isH2)
126
+ {
126
127
toc ~= TocTopEntry(entry, null );
128
+ }
127
129
else
130
+ {
131
+ assert (toc.length > 0 , " TOC generation error: $(H2) needs to come before $(H3)" );
128
132
toc.back.children ~= entry;
133
+ }
129
134
}
130
135
while (! text.empty)
131
136
{
Original file line number Diff line number Diff line change @@ -970,7 +970,7 @@ $G/contributors_list.ddoc: | $(STABLE_RDMD) $(TOOLS_DIR) $(INSTALLER_DIR)
970
970
# ###############################################################################
971
971
972
972
$(DDOC_BIN ) : ddoc_preprocessor.d | $(STABLE_DMD )
973
- $(STABLE_DMD ) -of$@ $<
973
+ $(STABLE_DMD ) -g - of$@ $<
974
974
975
975
# ###############################################################################
976
976
# Build and render the DMD man page
You can’t perform that action at this time.
0 commit comments