JM Twitter Cards
[resolved] line breaks ends in no spaces (3 posts)

  1. ajokano
    Posted 2 years ago #

    Hi, we post a lot of illustrated poetry, so a lot of lines are short and there are a lot of line breaks. In the extract in the cards there are no spaces between lines...
    For example:
    https://twitter.com/deletereos/status/435985626949619712 vs. http://deletereo.com/estertore/

    is there a way to replace line-breaks with "spaces"?


  2. tweetpressfr
    Plugin Author

    Posted 2 years ago #

    Sorry I missed that support !

    You can do this by deleting one function from the line where description is set (the final line).

    Replace this code :

    $output .= '<meta name="twitter:description" content="' . jm_tc_remove_lb($cardDescription) . '"/>' . "\n";

    with :

    $output .= '<meta name="twitter:description" content="' .$cardDescription . '"/>' . "\n";

    This should be located at line 882

  3. ajokano
    Posted 2 years ago #

    Just perfect! thank you very much!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JM Twitter Cards
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic