Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 07-16-2012, 01:27 AM   #1
Steven630
Zealot
Steven630 began at the beginning.
 
Posts: 143
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.
Steven630 is offline   Reply With Quote
Old 07-28-2012, 08:09 PM   #2
atordo
Connoisseur
atordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to beholdatordo is a splendid one to behold
 
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".
atordo is offline   Reply With Quote
Old 07-30-2012, 06:53 AM   #3
Steven630
Zealot
Steven630 began at the beginning.
 
Posts: 143
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
Thank you.
Steven630 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
adding recipes in mac osx snow leopard borjoz Calibre 2 07-30-2012 01:27 AM
Quotes, apostrophes, what a pain. draconic Conversion 4 12-30-2011 11:23 AM
Newbie question - adding to custom recipes (cover page, etc.) gianfri Recipes 8 12-30-2011 09:59 AM
Articles with apostrophes in title_sort riki Calibre 3 08-13-2011 02:56 PM
Birmingham drops apostrophes HarryT Lounge 22 01-31-2009 07:44 AM


All times are GMT -4. The time now is 12:46 PM.


MobileRead.com is a privately owned, operated and funded community.