1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 21:26:44 +02:00

fixed bug with :learn highlight

This commit is contained in:
Igor Chubin
2018-10-13 14:51:19 +00:00
parent 24af2326e1
commit 394d9ddf87
+3 -3
View File
@@ -171,10 +171,10 @@ def get_topic_type(topic): # pylint: disable=too-many-locals,too-many-branches,t
if '+' in topic_name:
result = 'question'
else:
if (topic_name in [':list']) or (topic_name in [':learn']):
if (topic_name in [':list', ':learn']):
result = "internal"
elif is_valid_learnxy(topic):
result = 'learnxiny'
if topic_name == ':learn' and is_valid_learnxy(topic):
result = 'learnxiny'
else:
# let us activate the 'question' feature for all subsections
result = 'question'