07-16-2012, 12:27 AM | #1 |
Groupie
Posts: 171
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
|
Adding Apostrophes in Recipes
How do I add an apostrophe in codes?
like self.log('') I want to add 'Today's word' Three apostrophes won't do. |
07-28-2012, 07:09 PM | #2 |
Connoisseur
Posts: 89
Karma: 19669
Join Date: Apr 2012
Device: Kindle Touch
|
Apostrophe (single quote) is a special character in Python used to enclose strings, as such you must "escape" it if you want to use it as normal text: 'Today\'s word'. Alternatively you can use double quotes to enclose the string: "Today's word".
|
Advert | |
|
07-30-2012, 05:53 AM | #3 |
Groupie
Posts: 171
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
|
Thank you.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
adding recipes in mac osx snow leopard | borjoz | Calibre | 2 | 07-30-2012 12:27 AM |
Quotes, apostrophes, what a pain. | draconic | Conversion | 4 | 12-30-2011 10:23 AM |
Newbie question - adding to custom recipes (cover page, etc.) | gianfri | Recipes | 8 | 12-30-2011 08:59 AM |
Articles with apostrophes in title_sort | riki | Calibre | 3 | 08-13-2011 01:56 PM |
Birmingham drops apostrophes | HarryT | Lounge | 22 | 01-31-2009 06:44 AM |