File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -174,15 +174,15 @@ def _is_printable_ascii(argstr: str) -> bool:
174
174
return all (32 <= ord (c ) <= 126 for c in argstr )
175
175
176
176
177
- def _has_apostrophe_or_backtick (argstr : str ) -> bool :
177
+ def _contains_apostrophe_or_backtick (argstr : str ) -> bool :
178
178
"""
179
179
Check if a string contains apostrophe (') or backtick (`).
180
180
181
181
For typographical reasons, apostrophe (') and backtick (`) are mapped to left and
182
- right single quotation marks (‘ and ’) in Adobe ISOLatin1+ encoding. To ensure what
182
+ right single quotation marks (‘ and ’) in Adobe ISOLatin1+ encoding. To ensure that what
183
183
you type is what you get (https://github.com/GenericMappingTools/pygmt/issues/3476),
184
184
they need special handling in the ``_check_encoding`` and ``non_ascii_to_octal``
185
- functions. More specifically, a string that contains printable ASCII characters with
185
+ functions. More specifically, a string containing printable ASCII characters with
186
186
apostrophe (') and backtick (`) will not be considered as "ascii" encoding.
187
187
188
188
Parameters
Original file line number Diff line number Diff line change @@ -466,7 +466,7 @@ def test_text_nonascii(encoding):
466
466
@pytest .mark .mpl_image_compare
467
467
def test_text_quotation_marks ():
468
468
"""
469
- Test typesetting single and double quotation marks.
469
+ Test typesetting backtick, apostrophe, and single and double quotation marks.
470
470
471
471
See https://github.com/GenericMappingTools/pygmt/issues/3104 and
472
472
https://github.com/GenericMappingTools/pygmt/issues/3476.
You can’t perform that action at this time.
0 commit comments