Need help? Check out our Support site, then


Remove some automatic HTML reformatings

  1. chrisbertrandprog
    Member

    Hi!

    In HTML edit mode, there are two HTML automatic reformating behaviors very annoying when I paste HTML code from my html editor:

    1. Text lines are cut.
      It is completly useless and a real headache.
    2. Spaces at the beginning of the lines are removed.
      That is a pain with programming texts (they contain vertical alignments on all lines).

    These two reformatings are useless and forces me to re-edit all the text by hand.
    I waste 15 minutes to reformat it at least.

    Thank you

    The blog I need help with is chrisbertrandprog.wordpress.com.

  2. chrisbertrandprog
    Member

    Hm.. please forget the first suggestion as it was a problem with my html editor (Kompozer). For the second, it is unclear for now.

    Sorry.

  3. Please link to an example and tell us how exactly you'd like it to be.

  4. If you are trying to post sourcecode, are you using the procedure outlined here: http://en.support.wordpress.com/code/posting-source-code/ ?

  5. chrisbertrandprog
    Member

    Thank you for the answer.

    I think there is a bug in Kompozer, so I will search for a workaround.

  6. chrisbertrandprog
    Member

    OK, there is something in WP that causes a problem:
    The line feedings are not taken in account in a HTML navigator while they are converted into new lines by WP.

    Example:
    This HTML source code:
    rlmhkjmdfjh oij dhodrij horitj hoprijg rsgioj perjigozjreg porjg<br /> eoprjeg oprjegopzjegpor ejgoirej goirje gopzrjge opzjreoirej goprjeg<br /> oerjig orjegozejg ojreg oirejg oprjg oprgji eorgj porjzgeop<br /> zrjgeipozjrg opi zporgji zporgj zporgjpzgij zreigj oierjg opzje<br /> rgopzjge opzrjgeiopzjregoizje gpozjg zporjg ^zoegij zorgji zorgji<br /> zprgji zerjgi zergji zpergi zeorgjisoîrvnzop,fvô qesc,^ij,x ôi,dv<br /> osrven opixvn pos vopsj vfporvj oisrjv.

    is displayed as one long text line by an HTML navigator.

    But WP convert it in 7 lines.
    Technically, WP has converted every 0x0d+0x0a in <br />.

  7. chrisbertrandprog
    Member

    I mean 0x0d+0x0a in
    (html linefeed)

  8. chrisbertrandprog
    Member

    grrr..
    html linefeed: BR

  9. chrisbertrandprog
    Member

    So for now I have to replace all "\r\n" (0x0d+0x0a) into " " (one space) before pasting any HTML code to WP. That is only a workaround.

    I hope that will be corrected in WP. :)

    Thank you

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.