WordPress.org

Ready to get started?Download WordPress

Forums

Post PDF Export
[resolved] Formatting question (4 posts)

  1. aussiedude
    Member
    Posted 1 year ago #

    My blog is for song lyrics so there are line breaks at the end of each line. However when I export to PDF the lyrics in each post export as a single line. Is there a way to format the text the same as the way it is displayed on the blog?

    The site is at http://cauldronchants.com/ to see the formatting
    You can see what I mean with the PDF here:
    http://cauldronchants.com/wp-content/uploads/2013/03/Cauldron_Chants.pdf

    Thanks

    http://wordpress.org/extend/plugins/post-pdf-export/

  2. Cristopher Dino
    Member
    Plugin Author

    Posted 1 year ago #

    Hi aussiedude,

    Thank you for using my plugin. For your concern. You need to use "Text" tab on post editor and apply line break HTML tags(
    ) instead of "Visual" tab.

    If you liked the plugin, i appreciate if you could give it a rate.

  3. aussiedude
    Member
    Posted 1 year ago #

    Thanks, that worked. I was hoping to avoid that since there may be less technical folks updating the songs.

  4. palatino
    Member
    Posted 9 months ago #

    Line 159 in /inc/shortcode_class.php should go like this:

    $item = apply_filters( 'the_content', get_the_content() );

    in order to apply the complete html tags. Otherwise <p> tags will be stripped away and the pdf does not have line breaks.

    So you don't need to add line breaks. WordPress adds them automatically. See here:
    http://wordpress.stackexchange.com/questions/32716/how-to-force-p-insertion-in-editor

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic