Whenever coloured code keywords appear in the "Programming in Scala" ePuyb book, they appear in proportional-width spacing beside fixed-width code without colour.
This only happens with the ePub in iBooks. I tested it with "Bluefire Reader" and it displays fine.
This also doesn't appear in the PDF version of the book.
I've also confirmed that coloured code shows up just fine in the "Seven Languages in Seven Weeks" ePub book in iBooks.
Therefore it must be something specific of the way code was formatted in the Scala book that's specific to iBooks. It may be an iBooks bug, but there is definitely an ePub workaround that could work.
Help get this topic noticed by sharing it on Twitter, Facebook, or email.
Sorry for our late response to this. I have forwarded your question on to our Book Tech staff, so they can help you find a solution. If you ever have any questions or issues with the content of a title, you can also contact them directly at email@example.com or call them at:
1-707-827-7019 (outside the USA)
7:30 am to 5:00 PST
Customer Service Representative