Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for empty space in end of line #54

Merged
merged 1 commit into from
Nov 26, 2018

Conversation

miguelsalespereira
Copy link
Contributor

When there's an empty space in the opening or closing line of a shortcode, the result will not be rendered.

[columns]
text to be in columns here
[/columns]

won't work, because there's a space after [columns]

By trimming the line in the preg_match, we make sure that any unexpected empty space is removed.

When there's an empty space in the opening or closing line of a shortcode, the result will not be rendered.

[columns] 
text to be in columns here
[/columns] 

won't work, because there's a space after [columns]

By trimming the line in the preg_match, we make sure that any unexpected empty space is removed.
@rhukster
Copy link
Member

thanks

@rhukster rhukster merged commit 35ff849 into getgrav:develop Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants