Skip to content
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

file.bookmarks.name isn't initialized before being assigned to pseud_h3_tag #9

Open
simone-cominato opened this issue Jul 21, 2024 · 0 comments

Comments

@simone-cominato
Copy link

I've noticed in parser.py, at line 276 that the "file.bookmarks.name" variable is a void string while being assigned to pseud_h3_tag.
The code snippet is the following:

pseud_h3_tag = '<DT><H3>' + file.bookmarks.name + '</H3>'
file.bookmarks = folder_handler(body_start - 1, pseud_h3_tag, lines[body_start:body_end + 1])
file.bookmarks.name = root_name

The result is that "pseud_h3_tag" is <DT><H3></H3> when used in the subsequent function.

The fix could be the following:

file.bookmarks.name = root_name
pseud_h3_tag = '<DT><H3>' + file.bookmarks.name + '</H3>'
file.bookmarks = folder_handler(body_start - 1, pseud_h3_tag, lines[body_start:body_end + 1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant