• Resolved burroughsc

    (@burroughsc)


    Lovely plugin guys … I’m using v2.1.7, however a couple of issues with regard to using html formatting in a calendar event description.

    1. Line breaks disappear from events when using [description html=”true”] after clicking next/back on a grid.

    2. Line breaks do not appear at all in events when using [description html=”true”] in the widget.

    http://seagullsswimming.club/galas-and-meets/ look at 21st February 2015. Click ‘Next’ then ‘Back’, then notice that the line breaks have all gone.

    Check the widget on the right of the same page, same date, and you’ll notice that the line breaks are not there even before clicking ‘Next’,’Back’.

    https://ww.wp.xz.cn/plugins/google-calendar-events/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Contributor Nick Young

    (@nickyoung87)

    I just checked out your site and I see the issue you are talking about. Would you mind sharing your event builder code?

    I will be looking into this when I get a chance. Thanks for bringing it to our attention.

    Thread Starter burroughsc

    (@burroughsc)

    As requested.

    <div class="gce-list-event gce-tooltip-event">[event-title]</div>
    [if-all-day]
    <div><b>All day event :</b> [start-date]</div>
    [/if-all-day]
    [if-not-all-day]
    <div><b>Starts:</b> [start-date] at [start-time]</div>
    <div><b>Ends:</b> [start-date] at [end-time]</div>
    [/if-not-all-day]
    [if-location]<div><b>Location:</b> <a href="https://www.google.co.uk/maps?q=[location]">[location]</a></div>[/if-location]
    [if-description]<div><b>Description:</b>[description html="true"]</div>[/if-description]
    <div>[link newwindow="true"]More details...[/link]</div>
    Plugin Contributor Nick Young

    (@nickyoung87)

    Cool thanks. So the line spacing in question is actually coming from the description of the event added on Google Calendar?

    Thread Starter burroughsc

    (@burroughsc)

    The description of the event in Google contains html … see below. It seems to work fine on initial load of the grid calendar on the page, but not the widget. And loses the spacing after hitting Next/Back.

    Team sheet: <a href='https://drive.google.com/file/d/0B2Z1Jii2soh_cXJQTkVQR1BvUDg/view?usp=sharing'>Click to view</a>
    Timetable: <a href='https://drive.google.com/file/d/0B2Z1Jii2soh_Wi1rYnZBZnlIMm8/view?usp=sharing'>Click to view</a>
    Secondary registration: <a href='https://drive.google.com/file/d/0B2Z1Jii2soh_c21qVUppR1BBMFE/view?usp=sharing'>Click to view</a>
    <br/>
    Session 1: Warm up: 10.00 am, Start: 11:15 am, Finish: 2:10 pm
    Session 2: Warm up: 2.50 pm, Start: 4:05 pm, Finish: 6:30 pm
    Plugin Contributor Nick Young

    (@nickyoung87)

    Perfect. Thanks for all the information. I will update you when I test it all out and find out what’s going on.

    Plugin Contributor Nick Young

    (@nickyoung87)

    Does it work correctly if you do it like this?

    Team sheet: <a href='https://drive.google.com/file/d/0B2Z1Jii2soh_cXJQTkVQR1BvUDg/view?usp=sharing'>Click to view</a><br>
    Timetable: <a href='https://drive.google.com/file/d/0B2Z1Jii2soh_Wi1rYnZBZnlIMm8/view?usp=sharing'>Click to view</a><br>
    Secondary registration: <a href='https://drive.google.com/file/d/0B2Z1Jii2soh_c21qVUppR1BBMFE/view?usp=sharing'>Click to view</a><br>
    <br/>
    Session 1: Warm up: 10.00 am, Start: 11:15 am, Finish: 2:10 pm<br>
    Session 2: Warm up: 2.50 pm, Start: 4:05 pm, Finish: 6:30 pm
    Thread Starter burroughsc

    (@burroughsc)

    It sort of works. But on the initial load of the grid calendar there is double line spacing which reverts to single line spacing after hitting next then back. The widget show single line spacing from the off. But obviously the actual calendar event on a mobile looks rubbish, and it’ll be a real pain to use lt; and gt; all the time.

    Plugin Contributor Nick Young

    (@nickyoung87)

    Out of curiosity are you using the “Visual” or “Text” editor for entering the event builder codes?

    Thread Starter burroughsc

    (@burroughsc)

    I’m using “Text” editor… I like to actually know what’s going on with regard to the html.

    Plugin Contributor Nick Young

    (@nickyoung87)

    Oh ok that’s what I was hoping for.

    Hmm. I can’t replicate the issue exactly on my side so I wondering if there might be some sort of CSS issue or conflict somewhere else.

    Could you try disabling your other plugins and use a default theme to see if it works properly then?

    Thread Starter burroughsc

    (@burroughsc)

    I can have a go .. but why is there a difference between the grid and the widget? And why would the formatting change in the grid simply by hitting the Next/Back button on the grid?

    Plugin Contributor Nick Young

    (@nickyoung87)

    Yeah its just a good thing to try. I know it’s a pain. The CSS could be different in the different content areas (widget vs main content) so that is a possible reason for something like that.

    When you changed the HTML for the event did you apply it to all events or just the single occurrence that you were editing?

    Thread Starter burroughsc

    (@burroughsc)

    Disabled all other plugins… same thing occurred.

    Thread Starter burroughsc

    (@burroughsc)

    I changed the HTML for all events.

    Thread Starter burroughsc

    (@burroughsc)

    Wrapping the description around <pre></pre> works.

    [if-description]<div><b>Description:</b><br/><pre>[description html="true"]</pre></div>[/if-description]

Viewing 15 replies - 1 through 15 (of 17 total)

The topic ‘HTML line break issue with [description html="true"]’ is closed to new replies.