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

Crash when run on one of my README.md files. #3

Open
vext01 opened this issue Jul 21, 2018 · 2 comments
Open

Crash when run on one of my README.md files. #3

vext01 opened this issue Jul 21, 2018 · 2 comments

Comments

@vext01
Copy link

vext01 commented Jul 21, 2018

Hi,

I installed mdvl using pip for Python-3.6 and ran it over:
https://raw.githubusercontent.com/softdevteam/krun/master/README.md

$ mdvl README.md
... renders document, then at the end:
md error:  not enough values to unpack (expected 2, got 1) 
@vext01
Copy link
Author

vext01 commented Jul 23, 2018

It also crashes on:

 * hi

but not:

hi

Seems to be to do with lists.

@vext01
Copy link
Author

vext01 commented Jul 23, 2018

I tried git master.

It works after applying this diff:

diff --git a/mdvl.py b/mdvl.py
old mode 100644
new mode 100755
index 2f8a315..a0eba98
--- a/mdvl.py
+++ b/mdvl.py
@@ -482,7 +482,7 @@ def sys_main():
                 md = fd.read()
     if err:
         print(err)
-        print md
+        print(md)
     else:
         main(md, term_width=cols)

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