-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: added automatic escaping of comas by default (to prevent bre…
…aking the line), and option '--do-not-force-escape-comas' to disable it
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,6 +85,10 @@ def init_parser(): | |
'--no-remove-name-in-email', dest='no_remove_name_in_email', action='store_true', \ | ||
help="Do not removes name in email, i.e.: keep email like the following untouched: \"John Doe\" <[email protected]>" \ | ||
) | ||
parser.add_argument( \ | ||
'--do-not-force-escape-comas', dest='do_not_force_escape_comas', action='store_true', \ | ||
help="Disable automatically escaping comas." \ | ||
) | ||
parser.add_argument( \ | ||
'-l', '--log-level', dest='log_level', default='INFO', \ | ||
choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'], \ | ||
|
@@ -143,6 +147,9 @@ def main(): | |
# french tweaks | ||
vcardlib.OPTION_FRENCH_TWEAKS = args.french_tweaks | ||
|
||
# coma auto escape | ||
vcardlib.OPTION_DOT_NOT_FORCE_ESCAPE_COMAS = args.do_not_force_escape_comas | ||
|
||
|
||
# check DESTDIR argument | ||
if exists(args.dest_dir): | ||
|