Html to markdown bug solved for Windows

This commit is contained in:
Ricardo Zapata 2017-12-01 20:43:07 +00:00 committed by Offray Luna
parent 2ee75d58ac
commit 97be568e06

View File

@ -524,8 +524,8 @@ GrafoscopioNode >> htmlToMarkdown [
waitForCommand: 'pandoc -f html -t markdown --atx-headers ', waitForCommand: 'pandoc -f html -t markdown --atx-headers ',
htmlFile fullName, ' -o ', markdownFile fullName ]. htmlFile fullName, ' -o ', markdownFile fullName ].
Smalltalk platformName = 'Win32' Smalltalk platformName = 'Win32'
ifTrue: [ WindowsProcess ifTrue: [ WinProcess
waitForCommand: 'pandoc -f html -t markdown --atx-headers ', createAndWaitForProcess: 'pandoc -f html -t markdown --atx-headers ',
htmlFile fullName, ' -o ', markdownFile fullName ]. htmlFile fullName, ' -o ', markdownFile fullName ].
self body: markdownFile contents. self body: markdownFile contents.
htmlFile ensureDelete. htmlFile ensureDelete.