tbfisher / sublimetext-Pandoc

A Sublime Text plugin that uses Pandoc to convert text from one markup format into another. Pandoc can convert documents in markdown, reStructuredText, textile, HTML, DocBook, LaTeX, MediaWiki markup, OPML, or Haddock markup to XHTML, HTML5, HTML slide shows using Slidy, reveal.js, Slideous, S5, or DZSlides, Microsoft Word docx, OpenOffice/LibreOffice ODT, OpenDocument XML, EPUB version 2 or 3, FictionBook2, DocBook, GNU TexInfo, Groff man pages, Haddock markup, OPML, LaTeX, ConTeXt, LaTeX Beamer slides, PDF via LaTeX, Markdown, reStructuredText, AsciiDoc, MediaWiki markup, Emacs Org-Mode, Textile, or custom writers can be written in lua.
MIT License
137 stars 26 forks source link

Running Pandoc with your package results in output with [CR] displayed for line endings #24

Closed gstalnaker closed 8 years ago

gstalnaker commented 9 years ago

Though the [CR] are annoying, the line spacing initially looks fine. Those [CR] are interpreted by SublimeText such that if I, say, run HTMLBeautify (which I want to do), I get a blank line following every [CR] in the reformatted text. If I use HTMLPrint the resulting HTML file displayed in a browser also has blank lines inserted. If, say, I use a modified Pandoc entry in your package to create a plaintext output file, I can copy the pandoc output from your package into a new window and the pasted text has extra lines. I've added some screen shots to show what I mean.

I cannot figure out what's going on. I chose your package for its ease of configuring. Pandown, using the same pandoc.exe binary, does not put the [CR] line endings, so it's something your package is doing.

Changing line endings using the Sublime-text menu from Windows to Unix and back changes nothing. If I save/name the output document, close it, then reopen it, the [CR] are gone. So it appears to be something in the buffered output that's removed when the file is saved by ST3. Very odd.

pandoc plain output 2015-03-02 14_25_22_sublime text pandoc plain output copied to new document in st3 2015-03-02 14_25_22_sublime text

codeman38 commented 9 years ago

Pull request #32 should fix this.

gstalnaker commented 9 years ago

Thank you.

On 7/10/2015 9:23 AM, codeman38 wrote:

Pull request #32 https://github.com/tbfisher/sublimetext-Pandoc/pull/32 should fix this.

— Reply to this email directly or view it on GitHub https://github.com/tbfisher/sublimetext-Pandoc/issues/24#issuecomment-120421390.

Guy Stalnaker, PaCS@DOIT, ECM/Imaging Service Lead 115 N. Orchard Street, Room 305 RS, Madison WI 53715 guy.stalnaker​@wisc.edu, work 608.263.8035