1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-06-26 04:00:43 +03:00

Omit example descriptions from the general index. (We'll use ^^{}

indexing instead.)
This commit is contained in:
Andrew Plotkin 2024-04-16 14:22:01 -04:00
parent 2fa1defd6d
commit cd37c61d84

View file

@ -589,6 +589,7 @@ int Indexes::sort_comparison(const void *ent1, const void *ent2) {
for (int i=0; i<NL; i++) {
index_lemma *il = lemma_list[i];
if ((just_examples) && (il->example_index_status == 0)) continue;
if ((!just_examples) && (il->example_index_status == 2)) continue;
inchar32_t incipit = Str::get_first_char(il->sorting_key);
if (Characters::isalpha(incipit)) incipit = Characters::toupper(incipit);
else incipit = '#';