Commit graph

20 commits

Author SHA1 Message Date
TheJackiMonster a33249fc9d
Added guard to catch errors with translation
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2022-05-17 11:43:22 +02:00
Jan Wester ff2cbca028 Converted most print statements to use logging
Some snippets have yet to be converted due to the more complex nature
of those snippets, and to keep things neat a separate commit makes more
sense for those.
2021-04-08 18:44:28 +02:00
TheJackiMonster 12be4c3a3d
Fixed all Python syntax warnings 2021-02-21 23:45:34 +01:00
Jan Wester f6fa3e8375 Do not try to export after dismissing the dialog
I happened to notice the UI briefly locking up when testing my previous
changes on some of the Pandoc exporters. While the bigger mess I found
along the way is more than a little fix can handle, this stopgap measure
will at least stop us from running pandoc when it isn't needed.
2019-09-07 15:59:45 -06:00
Jan Wester 9317dc97d8 Do not reinvent QFileDialog's default suffix
According to issue #608 we were silently overwriting files when there
was a suffix being generated for a chosen export filename when one was
missing to begin with. Unfortunately, this helpful feature avoids all
the conveniences offered by QFileDialog in regards to alerting the user
to overwriting an existing file. Worse still, this feature already
exists in QFileDialog and the native APIs it can rely on.

This patch reimplements QFileDialog.getSaveFileName to allow the use of
the default suffix feature as functions.getSaveFileNameWithSuffix and
removes most of the magic involved with the old solution.
2019-09-07 15:59:45 -06:00
Allan Nordhøy 761be5784a Spelling: Manuscript, could not, process, … No content (#588)
* Spelling: Plaintext, Manuscript, could not, process, … No content

* Reverted to "plain text"
2019-06-06 11:55:24 -06:00
Youness Alaoui c7605b5819 Don't crash if a typo is made in the exporter's regular expression.
When a regexp error is thrown, cancel the export and show an info dialog
with the error message to the user. Fixes #488
2019-02-15 12:49:22 -07:00
Curtis Gedak f75bc69dd7 Fix spelling mistake "chose" should be "choose"
Mentioned in issue #470
2019-02-07 12:34:57 -07:00
Lech Baczynski 3fdef2b800 Fix for compile/export crash (error when saving in cp1250) #331
See issue #331 and pull request #340
2018-08-21 10:55:53 -06:00
Olivier Keshavjee bc0d6f5760 Creates base classes 2017-11-15 20:34:05 +01:00
Olivier Keshavjee f820e5a62b Lots of pandoc formats 2016-04-15 11:58:09 +02:00
Olivier Keshavjee 26c42a56f1 Corrects things in manuskript exporter 2016-04-14 14:30:42 +02:00
Olivier Keshavjee 3bddbf4c64 Adds cute icons 2016-04-08 12:48:19 +02:00
Olivier Keshavjee 9c2c15e352 Exporter can now.. export. Yay! 2016-04-08 12:02:50 +02:00
Olivier Keshavjee ac0667c870 Updates translation 2016-04-07 14:47:29 +02:00
Olivier Keshavjee cb04c39362 More export format added 2016-04-07 14:27:51 +02:00
Olivier Keshavjee a956856da9 Adds markdown exporter 2016-04-07 13:18:06 +02:00
Olivier Keshavjee 16585c4a2a Basic plainText exporter working (preview only) 2016-04-07 12:18:20 +02:00
Olivier Keshavjee 548df14b28 Exporter looking like something now 2016-04-05 17:22:39 +02:00
Olivier Keshavjee 0554ac519e Reorganizing some stuff 2016-04-04 20:00:19 +02:00