File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1616import re
1717import string
1818
19+ from plover import __version__ as plover_version
1920from plover .formatting import ATOM_RE
2021from plover .steno import normalize_steno
2122from plover .steno_dictionary import StenoDictionary
2425
2526
2627HEADER = (r'{\rtf1\ansi{\*\cxrev100}'
27- r'\cxdict{\*\cxsystem Plover}'
28- r'{\stylesheet{\s0 Normal;}}' )
28+ r'\cxdict{\*\cxsystem Plover %s }'
29+ r'{\stylesheet{\s0 Normal;}}' ) % plover_version
2930
3031
3132class RegexFormatter :
Original file line number Diff line number Diff line change 55
66import pytest
77
8+ from plover import __version__ as plover_version
89from plover .dictionary .rtfcre_dict import RtfDictionary , TranslationFormatter
910from plover .dictionary .rtfcre_parse import BadRtfError
1011
@@ -422,11 +423,11 @@ def rtf_load_test(*spec, xfail=False):
422423)
423424
424425def rtf_save_test (dict_entries , rtf_entries ):
425- rtf_entries = b'\r \n ' .join ((
426+ rtf_entries = b'\r \n ' .join (((
426427 br'{\rtf1\ansi{\*\cxrev100}\cxdict'
427- br'{\*\cxsystem Plover}'
428- br'{\stylesheet{\s0 Normal;}}' ,
429- ) + rtf_entries + (b'}' , b'' ))
428+ br'{\*\cxsystem Plover %s }'
429+ br'{\stylesheet{\s0 Normal;}}'
430+ ) % plover_version . encode (),) + rtf_entries + (b'}' , b'' ))
430431 return dict_entries , rtf_entries
431432
432433RTF_SAVE_TESTS = (
You can’t perform that action at this time.
0 commit comments