# HG changeset patch # User Valerie Richmond # Date 1560537006 14400 # Fri Jun 14 14:30:06 2019 -0400 # Node ID c3772258e49132ff92708bfb692a0587bdeab0e9 # Parent 556180cf76a766fa30f6dc1360c8ae9f1321cc80 nicer fragment names for sections diff -r 556180cf76a7 -r c3772258e491 CHANGELOG --- a/CHANGELOG Fri Jun 14 01:11:05 2019 -0400 +++ b/CHANGELOG Fri Jun 14 14:30:06 2019 -0400 @@ -40,6 +40,9 @@ * Logs are now stored in a binary format in order to improve the efficiency of reading/writing log entries. + * (Sub)Section anchors are now based on the (sub)section's title, rather than + being of the form 'catsoop_section_X_Y_Z' + DEPRECATED: REMOVED: diff -r 556180cf76a7 -r c3772258e491 catsoop/language.py --- a/catsoop/language.py Fri Jun 14 01:11:05 2019 -0400 +++ b/catsoop/language.py Fri Jun 14 14:30:06 2019 -0400 @@ -670,8 +670,7 @@ to_num.insert(0, chapter) num = ".".join(map(str, to_num)) - linknum = num.replace(".", "_") - linkname = "catsoop_section_%s" % linknum + linkname = i.text.replace(" ", "_") lbl = i.attrs.get("label", None) if lbl is not None: