alphapapa / org-protocol-capture-html

Capture HTML from the browser selection into Emacs as org-mode content
453 stars 39 forks source link

Fix pandoc deprecation warning #8

Closed Georgiy-Tugai closed 8 years ago

Georgiy-Tugai commented 8 years ago

pandoc: --no-wrap is deprecated. Use --wrap=none or --wrap=preserve instead.

--wrap=[auto|none|preserve] Determine how text is wrapped in the output (the source code, not the rendered version). With auto (the default), pandoc will attempt to wrap lines to the column width specified by --columns (default 80). With none, pandoc will not wrap lines at all. With preserve, pandoc will attempt to preserve the wrapping from the source document (that is, where there are nonsemantic newlines in the source, there will be nonsemantic newlines in the output as well).

Perhaps --wrap=preserve would be more appropriate instead. WDYT?

raamdev commented 8 years ago

@Georgiy-Tugai FYI, there's a related issue already open here: https://github.com/alphapapa/org-protocol-capture-html/issues/3

Georgiy-Tugai commented 8 years ago

Thanks. I didn't realise that the option was new (I'm on Arch Linux, so I've always got cutting-edge versions of things).

alphapapa commented 8 years ago

Thanks for submitting this. Since it's not quite what's needed (i.e. it's necessary to handle both Pandoc versions), I'm going to go ahead and close it. For now, if you're using the newer Pandoc, please try the newer-pandoc branch, which should work with it.