Copying text in Kindle omits line breaks
Using Sigil, I'm writing a book containing program listings which look great. I convert to AZW3 using Calibre. The problem is when I try to copy and paste the code out of Kindle, there are no line breaks. My XHTML and CSS code is as follows:
<div class="codecont">
<p class="codein">Passg = R6Class("Passg",<br/>
public = list(<br/>
isCrazy = FALSE,<br/>
seatAssigned = 0,<br/>
seatTaken = 0<br/>
)<br/>
)</p>
</div>
p.codein1
{
/*display: inline;*/
display: block;
margin: 0;
padding:0;
border-width: 1em;
white-space: pre-wrap;
font-size: 0.9em;
font-family :"Lucida Console";}
.codecont {
display: block;
font-size: 0.790588em;
width: auto;
border-top: gray solid 0.1em;
border-right: gray solid 0.1em;
border-bottom: gray solid 0.1em;
border-left: gray solid 0.8em;
margin: 10px;
line-height: 80%;
padding: 0.2em 0.6em;
|