Skip to content

Commit 36565fa

Browse files
author
Sven Siegmund
committed
Bumped the version, updated minimal example
1 parent 9d21f76 commit 36565fa

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/rtfparse/entry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def argument_parser() -> argparse.ArgumentParser:
5252
parser.add_argument("-f", "--file", action="store", metavar="PATH", type=pathlib.Path, help="path to the rtf file").completer = EC
5353
parser.add_argument("-m", "--msg", action="store", metavar="PATH", type=pathlib.Path, help="Parse RTF from MS Outlook's .msg file").completer = EC
5454
parser.add_argument("-d", "--de-encapsulate-html", action="store_true", help="De-encapsulate HTML from RTF").completer = EC
55+
parser.add_argument("-i", "--embed-img", action="store_true", help="Embed images from email to HTML").completer = EC
5556
return parser
5657

5758

src/rtfparse/minimal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from rtfparse.renderers import de_encapsulate_html
77

88

9-
source_path = pathlib.Path(r"D:\trace\email\test_mail_sw_release.rtf")
10-
target_path = pathlib.Path(r"D:\trace\email\extracted_with_rtfparse.html")
9+
source_path = pathlib.Path(r"path/to/your/rtf/document.rtf")
10+
target_path = pathlib.Path(r"path/to/your/html/de_encapsulated.html")
1111

1212

1313
parser = Rtf_Parser(rtf_path=source_path)

src/rtfparse/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env python
22

33

4-
version = "0.7.7"
4+
version = "0.7.8"

0 commit comments

Comments
 (0)