lonekorean / wordpress-export-to-markdown

Converts a WordPress export XML file into Markdown files.
MIT License
1.07k stars 216 forks source link

Windows control characters in the code #74

Closed igoros777 closed 6 months ago

igoros777 commented 2 years ago

GitHub Windows client strikes again, eh?

/usr/local/bin/wordpress-export-to-markdown --post-folders=true --prefix-date=false --input "export.xml" --output "/mnt/c/zip/tmp/output" --year-folders=false --month-folders=false --save-attached-images=true --save-scraped-images=true --include-other-types=true

/usr/bin/env: ‘node\r’: No such file or directory

cat -v /usr/local/bin/wordpress-export-to-markdown|head -10

!/usr/bin/env node^M

^M const compareVersions = require('compare-versions');^M const path = require('path');^M const process = require('process');^M ^M const wizard = require('./src/wizard');^M const parser = require('./src/parser');^M const writer = require('./src/writer');^M`

lonekorean commented 6 months ago

It's been a while and I've changed computers and I'm not sure this is still an issue. Confirmed that git config --get core.autocrlf gives me true.

Anywho, I followed this guide to hopefully ensure line endings are handled nicely through git whenever me or anyone else works on this repo.