.tutorial

git-svn-id: svn://ultimatepp.org/upp/trunk@11252 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-07-16 17:48:06 +00:00
parent 1071e564b6
commit 661fa92ac4
2 changed files with 3 additions and 2 deletions

View file

@ -24,6 +24,7 @@ void Section(const String& title)
{
String lbl = AsString(++major);
String text = String().Cat() << lbl << "." << ' ' + TrimBoth(title);
lbl = "Chapter_" + lbl;
qtf << "[s6;:" << lbl << ": " << text << "&]";
minor = 0;
toc << "&[A3^" << lbl << "^ " << text << "]&";
@ -45,7 +46,7 @@ void FlushDoc(String& docblock)
docblock = AsString(major) + "." + AsString(++minor) + ' ' + TrimBoth(docblock.Mid(1));
style = minor == 1 ? "[s2;" : "[s2;H4";
lbl = AsString(major) + "_" + AsString(minor);
lbl = "Section_" + AsString(major) + "_" + AsString(minor);
style << ":" << lbl << ":";
title = true;
}