From 79dab9af0834e8b1a640742ac4e061c1cc649c58 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Fri, 27 Jul 2018 20:13:23 +0200 Subject: [PATCH] Add all the formatting codes to the create custom date column tooltip. --- .../gui2/preferences/create_custom_column.py | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/preferences/create_custom_column.py b/src/calibre/gui2/preferences/create_custom_column.py index 6c7c2bde62..e8ffffcb6e 100644 --- a/src/calibre/gui2/preferences/create_custom_column.py +++ b/src/calibre/gui2/preferences/create_custom_column.py @@ -403,7 +403,29 @@ class CreateCustomColumn(QDialog): if col_type == 'datetime': l, dl = _('&Format for dates'), _('Default: dd MMM yyyy.') self.format_box.setToolTip(_( - "

Date format. Use 1-4 \'d\'s for day, 1-4 \'M\'s for month, and 2 or 4 \'y\'s for year.

\n" + '

Date format.

' + '

The formatting codes are:' + '

' "

For example:\n" "