Elisabeth Henry
0f8a4f3026
More i18n fixing
2023-08-19 04:10:53 +02:00
Elisabeth Henry
b2f17cb4a2
Remove unused proofread error
2023-08-19 04:00:28 +02:00
Lise Henry
8ecc5f52b1
Fix EPUB and Html single rendering
2023-08-10 00:59:50 +02:00
Lise Henry
fe8d98ccd7
Replace mustache with upon (wip)
...
This compiles but probably wrecks everything since the template syntax
is a bit different
2023-08-09 13:30:07 +02:00
Lizzie Crowdagger
9285b5f3e7
Update comrak
2023-07-27 14:58:32 +02:00
Geobert Quach
40ca4e9771
chore: fixes clippy
2023-01-02 12:54:36 +00:00
Elisabeth Henry
ef0de11f92
Update some dependencies
2022-07-26 13:21:20 +02:00
Lizzie Crowdagger
20b8f8568c
Add forgotten file in previous commit
2022-07-22 02:07:24 +02:00
stefan0xC
e27403458c
use matches! macro to simplify some matches
...
https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro
2022-03-01 18:31:14 +01:00
stefan0xC
b36070b3e3
run linter `cargo clippy --fix`
2022-03-01 18:31:14 +01:00
Florian Bottke
b8d35ddc32
Update dependencies and formatting.
2022-01-15 19:21:03 +01:00
lise
ce319642c8
Move to Rust edition 2018
2019-02-28 17:33:18 +01:00
Elisabeth Henry
c3ded497a9
Add support for grammalecte
2017-07-07 22:05:06 +02:00
Elisabeth Henry
b093968232
Add html.chapter.template and html.part.template options
2017-03-27 02:58:35 +02:00
Elisabeth Henry
fe98e6f326
Use write! macro instead of push_str(&format!(...))
2017-01-12 02:46:04 +01:00
Elisabeth Henry
9343c0633c
Move to name changes in EpubBuilder
2017-01-02 21:39:27 +01:00
Elisabeth Henry
b1d0715e0c
Use 'external' epub building library
2017-01-02 16:26:17 +01:00
Elisabeth Henry
d1dc75df93
Improve docs of error and source
2016-12-20 23:57:49 +01:00
Elisabeth Henry
69efeacd22
Make Source's setting methods return &mut Self
2016-12-20 16:03:57 +01:00
Elisabeth Henry
a62b2b8d2a
Implement From<mustache::error> for Error
2016-11-18 16:44:30 +01:00
Elisabeth Henry
9389e34a89
Run rustfmt
2016-10-13 04:06:15 +02:00
Elisabeth Henry
90cefa7e8c
Add named arguments to lformat!
2016-10-12 23:19:23 +02:00
Elisabeth Henry
144d5cb2e0
Localize epub.rs and error.rs
2016-10-09 21:36:16 +02:00
Elisabeth Henry
2c0fc2381a
Impl display for Source and display it more often
2016-09-29 01:01:15 +02:00
Elisabeth Henry
5769a6de25
Start cleaning grammar_check.rs
2016-09-27 23:02:53 +02:00
Elisabeth Henry
e6c1ae55e3
Make source::unset_line hidden
2016-09-21 13:44:33 +02:00
Elisabeth Henry
2a503d3bc4
Reduce API surface
2016-09-21 13:40:41 +02:00
Elisabeth Henry
98b6a88e57
Avoid panicking when mustache can't compile a template
...
Uses std:🧵 :spawn to transform a panic into an Error.
Fixes #20
2016-09-21 03:18:35 +02:00
Elisabeth Henry
b3ee567567
Change formatting of Error::default
2016-09-20 05:57:29 +02:00
Elisabeth Henry
f0dff0028d
Improve error messages
2016-09-20 03:34:33 +02:00
Elisabeth Henry
03fd3088c3
Add is_xxx method for each variant of the inner (private) enum of Error
2016-09-20 01:34:50 +02:00
Elisabeth Henry
705e1ea732
Fix formatting of errors
2016-09-20 01:30:06 +02:00
Elisabeth Henry
f6370f5029
Remove source::file method as it isn't used
2016-09-19 22:23:25 +02:00
Elisabeth Henry
2f411739e1
Make source::new use Into<String> instead of &str
2016-09-19 22:19:32 +02:00
Elisabeth Henry
7aaec8fdf9
Make escape functions use Cow
2016-09-19 21:10:14 +02:00
Elisabeth Henry
4b5177475c
Refactor Error struct
2016-09-19 20:33:07 +02:00
Elisabeth Henry
1faf8110f6
Add description of the missing file for Error::FileNotFound
2016-09-11 14:02:38 +02:00
Elisabeth Henry
960cd19c53
Refactor Errors
...
The purpose of this is to add `Source` information to (hopefully,
most) errors, so crowbook can display the file where an error occurred
and, in some cases, its line number.
2016-09-11 05:26:11 +02:00
Elisabeth Henry
e0d9276ae0
Add Source struct
2016-09-11 03:37:05 +02:00
Elisabeth Henry
cb299a98af
Fix code formatting
2016-05-04 19:13:44 +02:00
Elisabeth Henry
9980739ed4
Make Error::Render contain a String instead of a &'static str
...
Also, more errors that should theoretically not happened have been
turned to panic!s
2016-03-04 19:26:23 +01:00
Elisabeth Henry
6109570ccf
Deny missing docs
2016-03-03 21:14:32 +01:00
Elisabeth Henry
48a672c024
adaptating verbose status to Logger
2016-02-29 00:36:45 +01:00
Elisabeth Henry
0b0da0092e
code cleaning and improving documentation
2016-02-26 01:49:38 +01:00
Elisabeth Henry
6218ca91cf
refactored Book to use a map instead of 42 fields
2016-02-22 23:21:51 +01:00
Elisabeth Henry
ce3c47e447
Added BookOption enum
2016-02-22 21:18:24 +01:00
Elisabeth Henry
4a0c27b418
better parser errors
2016-02-22 18:52:06 +01:00
Elisabeth Henry
0c97fde591
Changed license to LGPL
2016-02-20 18:44:48 +01:00
Elisabeth Henry
829746a762
runned clippy, thus some minor corrections
2016-02-19 23:43:16 +01:00
Elisabeth Henry
1f8f6129c2
some stuff
2016-02-19 16:54:00 +01:00