Trouble with empty lines

Aug 14, 2009 18:52

I wrote a little php script that helps me to send posts to a community. I've got Apache running on my local PC (Windows XP) and, as i said, i wrote script in php. It based on Services_Blogging from PEAR to make XML messages using XML_RPC package ( Read more... )

client: pear, client: posting, client, client: xmlrpc

Leave a comment

Comments 8

raccaldin36 August 14 2009, 16:17:56 UTC
Try
?

Reply

real_daishi August 14 2009, 16:53:46 UTC
It works, but making new lines with tags confuses edit form at http://www.livejournal.com/editjournal.bml . Both \n and
are in use-it doesn't look good. I need a graceful solution :)

Reply


pauamma August 14 2009, 17:36:49 UTC
Are you posting with entry autoformating turned off? When you view the entry with a web browser, does the HTML source contain a
tag for each \n, or are some missing?

Reply

real_daishi August 14 2009, 17:57:40 UTC
I don't set props['opt_preformatted']. As I know, autoformating (replacing \n with
and making links) is turned on by default. So, I leave it like it is.

HTML doesn't contain
tags in edit form at the livejournal.com until I place it there. Any line has \n (invisible) placed at the end. But lj's XML-RPC server (as a suggest) steals all empty lines with their \n or \n\r.

Reply

pauamma August 14 2009, 18:18:01 UTC
I didn't mean in the edit form, I meant when viewing the entry with a web browser (like http://community.livejournal.com/lj_dev/816127.html for this entry)

Reply

real_daishi August 15 2009, 08:29:01 UTC
Source code of the page contains
tags at the end of non-empty lines and doesn't contain
tags at the end of empty lines (i.e. entire empty line is missing).

Reply


Leave a comment

Up