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

Not show in v.3200 #12

Open
mercurykd opened this issue Mar 21, 2019 · 3 comments
Open

Not show in v.3200 #12

mercurykd opened this issue Mar 21, 2019 · 3 comments

Comments

@mercurykd
Copy link

In new version sublime not show.

Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 1088, in run_
return self.run(edit)
File "C:\Users\User\AppData\Roaming\Sublime Text 3\Installed Packages\DocPHPManualer.sublime-package\docphp.py", line 331, in run
File "C:\Users\User\AppData\Roaming\Sublime Text 3\Installed Packages\DocPHPManualer.sublime-package\docphp.py", line 344, in show_popup
File "C:\Users\User\AppData\Roaming\Sublime Text 3\Installed Packages\DocPHPManualer.sublime-package\docphp.py", line 412, in formatPopup
File "./python3.3/html/parser.py", line 145, in feed
File "./python3.3/html/parser.py", line 189, in goahead
File "./python3.3/html/parser.py", line 372, in parse_starttag
File "C:\Users\User\AppData\Roaming\Sublime Text 3\Installed Packages\DocPHPManualer.sublime-package\docphp.py", line 528, in handle_startendtag
File "C:\Users\User\AppData\Roaming\Sublime Text 3\Installed Packages\DocPHPManualer.sublime-package\docphp.py", line 557, in get_tag_text
File "C:\Users\User\AppData\Roaming\Sublime Text 3\Installed Packages\DocPHPManualer.sublime-package\docphp.py", line 557, in
TypeError: can only concatenate tuple (not "str") to tuple

@mercurykd
Copy link
Author

#13

@mercurykd
Copy link
Author

My changes broked checkout language(

@giratek
Copy link

giratek commented Mar 26, 2023

The solution to this problem was found for ST 4. It is necessary in DocPHPManualer.sublime-package archive to change the file docphp.py starting from line 557 correct the function as follows:
def get_tag_text(self, tag, attrs, is_startend=False):
t=''
if type(attrs) == dict:
for key in attrs:
t=t+ key + '="' + attrs[key] + '"'
return '<'+ tag + ' ' + t + (' />' if is_startend else '>')

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

2 participants