thorstenb / odpdown

Generate OpenDocument Presentation (odp) files from markdown
Other
107 stars 18 forks source link

specifying `-` as input file no longer works #18

Closed aspiers closed 9 years ago

aspiers commented 9 years ago

I think one of today's updates broke the ability to accept STDIN as input instead of a file. It was probably unicode-related:

Traceback (most recent call last):
  File "/home/adam/SUSE/git/odpgen/odpgenerator.py", line 814, in <module>
    main()
  File "/home/adam/SUSE/git/odpgen/odpgenerator.py", line 738, in main
    markdown = codecs.open(args.input_md, 'r', encoding='utf-8')
  File "/usr/lib64/python2.7/codecs.py", line 881, in open
    file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 2] No such file or directory: '-'