Missing enclosing <p> and </p> tags in paragraph text rendering #271

Closed
dandv opened this Issue Aug 20, 2012 · 6 comments

Comments

Projects
None yet
2 participants
@dandv
Contributor

dandv commented Aug 20, 2012

Using 1.14.2. When adding content that contains an empty line in a paragraph text Pods field, the output will miss the opening <p> tag.

Template: <div class="su_au_dec">{@bio}</div>

Input that's rendered correctly:

foo

Rendered:

<div class="su_au_dec">foo</dec>

Input that's rendered incorrectly:

foo

bar

Rendered:

<div class="su_au_dec">foo</p>
<p>bar</div>

I'm calling the template from a shortcode like this: [pods name="advisors" template="advisor_list" orderby="t.order ASC"]

@ghost ghost assigned sc0ttkclark Aug 20, 2012

@sc0ttkclark

This comment has been minimized.

Show comment
Hide comment
@sc0ttkclark

sc0ttkclark Aug 20, 2012

Member

How are you outputting your template code?

Member

sc0ttkclark commented Aug 20, 2012

How are you outputting your template code?

@dandv

This comment has been minimized.

Show comment
Hide comment
@dandv

dandv Aug 26, 2012

Contributor

I have a Pods template advisor_list, which has a bunch of divs with magic tags, then this: <div class="su_au_dec">{@bio}</div>. No PHP.

Contributor

dandv commented Aug 26, 2012

I have a Pods template advisor_list, which has a bunch of divs with magic tags, then this: <div class="su_au_dec">{@bio}</div>. No PHP.

@sc0ttkclark

This comment has been minimized.

Show comment
Hide comment
@sc0ttkclark

sc0ttkclark Aug 26, 2012

Member

How are you calling your pod page content itself? Are you using pods_content() in your page template?

Member

sc0ttkclark commented Aug 26, 2012

How are you calling your pod page content itself? Are you using pods_content() in your page template?

@dandv

This comment has been minimized.

Show comment
Hide comment
@dandv

dandv Aug 26, 2012

Contributor

Via a shortcode. I've updated the bug description.

Contributor

dandv commented Aug 26, 2012

Via a shortcode. I've updated the bug description.

@sc0ttkclark

This comment has been minimized.

Show comment
Hide comment
@sc0ttkclark

sc0ttkclark Aug 26, 2012

Member

Not a Pods bug, looks like a bug with WordPress shortcodes and invalid markup with wpautop:

http://wordpress.stackexchange.com/questions/21414/wordpress-wpautop-shortcode-generating-invalid-markup

Member

sc0ttkclark commented Aug 26, 2012

Not a Pods bug, looks like a bug with WordPress shortcodes and invalid markup with wpautop:

http://wordpress.stackexchange.com/questions/21414/wordpress-wpautop-shortcode-generating-invalid-markup

@dandv

This comment has been minimized.

Show comment
Hide comment
@dandv

dandv Aug 26, 2012

Contributor

I've created a ticket with Wordpress for this issue.

Contributor

dandv commented Aug 26, 2012

I've created a ticket with Wordpress for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment