(self, data)
| 865 | return font |
| 866 | |
| 867 | def _list_to_formula(self, data): |
| 868 | # Convert and list of row col values to a range formula. |
| 869 | |
| 870 | # If it isn't an array ref it is probably a formula already. |
| 871 | if not isinstance(data, list): |
| 872 | # Check for unquoted sheetnames. |
| 873 | if data and " " in data and "'" not in data and self.warn_sheetname: |
| 874 | warn( |
| 875 | f"Sheetname in '{data}' contains spaces but isn't quoted. " |
| 876 | f"This may cause an error in Excel." |
| 877 | ) |
| 878 | return data |
| 879 | |
| 880 | formula = xl_range_formula(*data) |
| 881 | |
| 882 | return formula |
| 883 | |
| 884 | def _process_names(self, name, name_formula): |
| 885 | # Switch name and name_formula parameters if required. |
no test coverage detected