Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-16-2012, 12:27 AM   #1
Steven630
Groupie
Steven630 began at the beginning.
 
Posts: 164
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, 07: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
Advert
Old 07-30-2012, 05:53 AM   #3
Steven630
Groupie
Steven630 began at the beginning.
 
Posts: 164
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
Thank you.
Steven630 is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 12:06 AM.


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