diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2020-09-29 23:21:18 +0200 |
---|---|---|
committer | Mathieu Duponchelle <mathieu@centricular.com> | 2020-09-29 23:21:18 +0200 |
commit | 8c0e2808cd977128c3e5656ff268ae4ee9abc17a (patch) | |
tree | 26b5f71f4b2322641b6d116f2bed28797745dd6e /giscanner | |
parent | 0de9608f6f23fc837122fdf52528774ae47acc25 (diff) | |
download | gobject-introspection-8c0e2808cd977128c3e5656ff268ae4ee9abc17a.tar.gz |
Revert "giscanner: Fix section matching for documentation"
This reverts commit de6512b31b614567bf1800406303d1ccfb6d9455.
This was causing naming conflicts when the SECTION documentation
was picked over the class documentation.
See https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/360
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/annotationparser.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py index c9ff5c2b..f8257206 100644 --- a/giscanner/annotationparser.py +++ b/giscanner/annotationparser.py @@ -1357,12 +1357,7 @@ class GtkDocCommentBlockParser(object): result = SECTION_RE.match(line) if result: - # Some projects use kebab-case or CamelCase for section - # names. Convert them all to flat case so we can match - # them easily later on. - identifier_name = 'SECTION:%s' % (result.group('section_name') - .replace("-", "") - .lower(), ) + identifier_name = 'SECTION:%s' % (result.group('section_name'), ) identifier_delimiter = None identifier_fields = None identifier_fields_start = None |