orchitech / redmine_reformat

A Swiss-Army Knife for Converting Redmine Rich Text Data
Other
32 stars 6 forks source link

Evaluate pandoc exit code in textile_to_markdown converter #6

Closed martincizek closed 3 years ago

martincizek commented 3 years ago

To avoid the issue observed in #4, textile_to_markdown conveter should evaluate pandoc's exit code and:

martincizek commented 3 years ago

The non-persistent error codes are set to empty set for now (PANDOC_RECOVERABLE_EXIT_CODES = []).

The only obvious candidate in https://pandoc.org/MANUAL.html#exit-codes is 92 = PandocUTF8DecodingError, but a UTF8 decoding error would be probably already handled by Ruby at the pandoc execution time.