View Single Post
Old 02-20-2008, 12:21 AM   #301
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by DaleDe View Post
Generally PalmDOC files (the ones you process) are expected to be wrapped by the reader and only contain returns at paragraph boundaries thus there is no line end. Why would you want line endings?
I misspoke, I said 'Line endings' but meant 'paragraph boundaries'.

I'm looking to 'convert' .pdb text to .html code very simplicatically i.e.
Code:
Chapter One\nThe Sky was...\n
to become
Code:
<html><body><p>Chapter One</p>\n<p>The Sky was...</p>\n<p></p></body></html>
What I'm getting is:
Code:
<html><body><p>Chapter One The Sky was... </p></body></html>
The '\n' gets converted to a space BEFORE I'm able to replace it with </p>\n<p> somewhere in the bowels of 'Mobiperl'.

-Nick
nrapallo is offline   Reply With Quote