summaryrefslogtreecommitdiff
path: root/doc/t2h.pm
diff options
context:
space:
mode:
Diffstat (limited to 'doc/t2h.pm')
-rw-r--r--doc/t2h.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/t2h.pm b/doc/t2h.pm
index 87412699aa..d07d974286 100644
--- a/doc/t2h.pm
+++ b/doc/t2h.pm
@@ -131,7 +131,11 @@ my $program_version_num = version->declare(get_conf('PACKAGE_VERSION'))->numify;
my $program_version_6_8 = $program_version_num >= 6.008000;
# print the TOC where @contents is used
-set_from_init_file('INLINE_CONTENTS', 1);
+if ($program_version_6_8) {
+ set_from_init_file('CONTENTS_OUTPUT_LOCATION', 'inline');
+} else {
+ set_from_init_file('INLINE_CONTENTS', 1);
+}
# make chapters <h2>
set_from_init_file('CHAPTER_HEADER_LEVEL', 2);