• Resolved ChrisL

    (@chrslcy)


    Hi Phil,

    Here’s some feedback on the 3.0 beta. I am using these shortcodes for a Google Calendar:

    [title][if-not-all-day]
    ([start-time] – [end-time])[/if-not-all-day]

    …but I’m getting an unwanted space immediately after the open bracket and before the time, like this:

    ( 9:30 am – 10:30 am)

    When I inspect the html, it’s appearing as:

    “( “
    <span class=”simcal-event-start simcal-event-start-time” data-event-start=”1449568800″ data-event-format=”g:i a” itemprop=”startDate” content=”2015-12-08T10:00:00+0000″>9:30 am</span>

    Otherwise, it’s looking awesome. Great work.

    https://www.ads-software.com/plugins/google-calendar-events/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Fulvio Notarstefano

    (@nekojira)

    can you try with putting the conditional tag inline?

    like:

    [title]
    [if-not-all-day] ([start-time] - [end-time]) [/if-not-all-day]

    or also next to the title should do
    alternatively, try also to add a space before the start-time or end-time tag

    please let me know if works out

    Thread Starter ChrisL

    (@chrslcy)

    Tried it. Same issue. The space remains. In fact, I can confirm that it is the presence of a time shortcode which causes the space. I tried this string:

    [if-not-all-day]([start-time]![start-time]”[start-time]£[start-time]$[start-time]%[start-time]^[start-time]&[start-time]*[start-time]([start-time])[start-time]_[start-time]+[start-time]{[start-time]}[start-time]@[start-time]~[start-time]<[start-time]>[start-time]?[start-time]-[end-time])[/if-not-all-day]

    and got this result:

    ( 10:00 am! 10:00 am” 10:00 am£ 10:00 am$ 10:00 am% 10:00 am^ 10:00 am& 10:00 am* 10:00 am( 10:00 am) 10:00 am_ 10:00 am+ 10:00 am{ 10:00 am} 10:00 am@ 10:00 am~ 10:00 am 10:00 am? 10:00 am- 11:00 am)

    So the time needs trimming of space. This may be the case for other shortcodes too.

    Plugin Contributor Fulvio Notarstefano

    (@nekojira)

    oh sorry, I misread your original post

    I just fixed it, will update the beta file in a few minutes

    thanks for spotting this

    Thread Starter ChrisL

    (@chrslcy)

    I should mention that when I enter a string of characters without the time shortcode, like this:

    (!ӣ$%^&*()_+{}@~<>?-)

    ..no spaces appear.

    Thread Starter ChrisL

    (@chrslcy)

    Spaces before time shortcodes now fixed. Great job!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[3.0 beta] Feedback – unwanted space’ is closed to new replies.