emceeaich: A close-up of a pair of cats-eye glasses (Default)
Emma Humphries ([personal profile] emceeaich) wrote in [community profile] getting_started2009-04-20 11:42 pm
Entry tags:

Crossposting Autoformat Annoyances

If you are a pedant like me, you probably write your posts in raw HTML, and check Disable Auto-Formatting in the editor.

Unfortunately, when you crosspost the entry to a LJ-based site, the markup:

<p>paragraph one</p>
<p>paragraph two</p>

shows up as:

<p>paragraph one</p><br><p>paragraph two</p>

Because, most likely by default, the auto-formatter is handling the inbound post.

I've opened Bug 904 to see about addressing this on the DW side, however, there is a workaround:

If you are writing markup for your posts, before you save, remove the carriage returns between block-level elements (p, blockquote, div, etc..)

Then the auto-formatter won't try to insert <br> between then.

pne: A picture of a plush toy, halfway between a duck and a platypus, with a green body and a yellow bill and feet. (Default)

lj-raw

[personal profile] pne 2009-04-21 07:49 am (UTC)(link)
Why not wrap the entire post in <lj-raw>...</lj-raw>? That should get ignored with "Disable Auto-Formatting" on here, and should make Do The Right Thing on the other end of the cross-post (e.g. LiveJournal).

Seems easier to insert one pair of tags than to remove every newline between block-level elements (which could be any number of them).
zvi: self-portrait: short, fat, black dyke in bunny slippers (Default)

Re: lj-raw

[personal profile] zvi 2009-04-21 05:03 pm (UTC)(link)
Er, the LJ tags are being stripped by the crossposter at the mo, so it wouldn't work.
pne: A picture of a plush toy, halfway between a duck and a platypus, with a green body and a yellow bill and feet. (Default)

Re: lj-raw

[personal profile] pne 2009-04-21 05:15 pm (UTC)(link)
Ah, oops. Thanks for the correction.