New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python xml - argsstring is empty, while HTML have arguments (Origin: bugzilla #739056) #5665

doxygen opened this Issue Jul 2, 2018 · 0 comments


None yet
1 participant

doxygen commented Jul 2, 2018

status RESOLVED severity critical in component general for ---
Reported in version 1.8.8 on platform Other
Assigned to: Dimitri van Heesch

On 2014-10-23 07:52:29 +0000, wrote:

All functions inside the xml output are with empty text inside the argsstring tag, while the HTML output looks fine.

For example, project bleach:

  <memberdef kind="function" id="classbleach4_1_1sanitizer_1_1BleachSanitizerMixin_1a67629f3321a20f5b08a19030895caf88" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
    <definition>def bleach4.sanitizer.BleachSanitizerMixin.sanitize_token</definition>

while the HTML looks fine with
def bleach4.sanitizer.BleachSanitizerMixin.sanitize_token(self, style)

On 2014-11-16 15:00:05 +0000, Dimitri van Heesch wrote:

Confirmed. Should be fixed in the next GIT update.

On 2014-11-16 16:52:23 +0000, wrote:

Thank you

On 2014-12-25 16:02:25 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.9. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant (preferrably in the form of a self-contained example).

On 2014-12-26 10:26:21 +0000, wrote:

It's partly fixed in the latest GIT (cloned last week).

Some functions have argsstring filled, and some have argsstring empty.

For example, in Bleach project, the function:
def bleach.sanitizer.BleachSanitizer.init,
has argsstring:

  <memberdef kind="function" id="classbleach_1_1sanitizer_1_1BleachSanitizer_1a05b756df4f276e571ce7b9fff35b5c2a" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
    <definition>def bleach.sanitizer.BleachSanitizer.__init__</definition>
    <argsstring>(self, stream, encoding=None, parseMeta=True, useChardet=True, lowercaseElementName=True, lowercaseAttrName=True, kwargs)</argsstring>

and the function def bleach.clean doesn't:

def bleach.clean


Clean an HTML fragment and return it

from the source of bleach.clean, the argsstring is:
def clean(text, tags=ALLOWED_TAGS, attributes=ALLOWED_ATTRIBUTES,
styles=ALLOWED_STYLES, strip=False, strip_comments=True):

BTW, I've also tried running doxygen on a different project I"m using, and the same problem occurs - some argsstring appear, some do not. I don't see a specific logic I can help you to pinpoint exactly what's the bug.

If there are any tests I can do to help you, please please let me know.

Thx, Erez

On 2015-07-26 08:24:03 +0000, albert wrote:

The first part of this bug report was handled as indicated in comment # 1, this took into account all situations where the last argument didn't have a default value. The later problem was indicated by comment # 4 and later on by Bug 752658 - XML empty in python
The pull request 371 to github with Bug 752658 - XML empty in python
tries to handle the situation where the last argument has a default value.

I think this bug report can be closed with reference to Bug 752658.

On 2015-07-26 11:13:50 +0000, wrote:

Bug solved by pull request 371. I'm marking resolved.

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment