TheJackiMonster
f274cd489f
Use text mode writing files
...
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-12 16:22:46 +01:00
TheJackiMonster
98d6eb4975
Remove usage of hardcoded path separators
...
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-12 15:53:37 +01:00
Christian Freitag
e267699667
- Adjusted open calls to use \n as newline for all platforms instead of guessing it
2023-08-07 13:09:55 +02:00
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
Allan Nordhøy
62a8a136c0
Spelling: LaTeX, Pandoc, XeLaTeX, Unicode, HTML. https link
...
See pull request #310 .
2018-02-12 10:52:35 -07:00
Olivier Keshavjee
c2dcbf56a0
Adds new markdown highlighter and many little tweaks
2017-11-27 21:35:32 +01:00
Olivier Keshavjee
9be2edeee7
Checkpoint: adding new markdown highlighter
2017-11-22 13:43:40 +01:00
Olivier Keshavjee
bc0d6f5760
Creates base classes
2017-11-15 20:34:05 +01:00
Olivier Keshavjee
2ff7cf80c6
Adds QtWebEngine support, while keeping QtWebKit support.
2017-06-15 15:24:06 +02:00
Olivier Keshavjee
9a646cb403
Preview can display images in html relative to project path (temporary solution for #22 )
2017-05-08 09:10:33 +02:00
Olivier Keshavjee
0ed3e36952
Adds icon to exporter, and test if latex is available
2016-04-15 14:04:07 +02: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