WordPress.org

Ready to get started?Download WordPress

Forums

LinkedIn SC
[resolved] All the line breaks are gone (13 posts)

  1. Olivier
    Member
    Posted 3 years ago #

    I did some tests and all the lines breaks in between paragraphs are gone.
    I would be great if the formatting could be kept when importing a "section"

    http://wordpress.org/extend/plugins/linkedin-sc/

  2. Olivier
    Member
    Posted 3 years ago #

    To be more precise, I've checked the linkedin html and there are to br tags. One at the end of the line and the other on its own on the next line.
    One is discarded and it breaks the formatting.

  3. guillaumev
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Olivier,

    I don't see exactly what you mean. Do you have an example of a page where this happens ?

    Thanks.

  4. Olivier
    Member
    Posted 3 years ago #

    OK, I picked this random profile.
    http://www.linkedin.com/in/tracycrossley

    Look at the summary. Paragraphs are spaced. There are two br tags to make this happen.

    If you load it with the plugin, everything is squashed ;).

  5. guillaumev
    Member
    Plugin Author

    Posted 3 years ago #

    It seems like this one is going to be harder to fix. I will investigate more this week-end.

  6. Olivier
    Member
    Posted 3 years ago #

    Ta

  7. guillaumev
    Member
    Plugin Author

    Posted 3 years ago #

    Ok it should be fixed in the development version. However, only br tags are allowed for security reasons (see http://en.wikipedia.org/wiki/Cross-site_scripting)

  8. Olivier
    Member
    Posted 3 years ago #

    Thanks for releasing a fix :)
    It's still not being formatted properly though.
    You have now introduced an extra < br > tag after every existing one.
    So now things are too spaced out.

  9. guillaumev
    Member
    Plugin Author

    Posted 3 years ago #

    Right. The main problem is that it seems that linkedIn, for some fields, creates br tags when you put a blank line, and in some other fields, inserts br tags...

    I will investigate more...

  10. guillaumev
    Member
    Plugin Author

    Posted 3 years ago #

    Ok, I think I have it right now. However, before doing a new release, could you test it as well using the version that's on the svn repository (http://plugins.svn.wordpress.org/linkedin-sc/trunk/) ?

    If you give me your green light, I'll do a new release.

    Thanks.

  11. Olivier
    Member
    Posted 3 years ago #

    Worked perfectly for me this time :)
    Thx!

  12. guillaumev
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks a lot for the help ! I released the fix (see version 1.0.3)

  13. Olivier
    Member
    Posted 2 years ago #

    This is broken again, at least for the summary.
    Also, I think it would be a good idea to wrap text in a special div that includes style="display:block" because without this, all the formatting is gone.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic