-
Notifications
You must be signed in to change notification settings - Fork 11
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
treat a p tag as an nbsp? #10
Comments
Or even treat a p tag as a |
I'm not sure I'm following what you're trying to do. By default Hacksaw shouldn't remove a space. Are you sure there is a space in the Rich Text field? |
Hi Ryan, Sorry I'm probs not being clear. Currently using this in my template: Instead, I would like to output it like this: The problem is that there are multiple paragraphs in my variable, after the "." there is a closing |
I'm not at the moment, I've just left for the day, though I'll take another text. more text .My text will be straight from a rich text field, so I guess depends on what On 1 July 2015 at 16:08, Ryan Shrum [email protected] wrote:
|
I am seeing this issue as well. I think it would be good to add a space (doesn't even have to be an nbsp) if there isn't one between p tags. If the closing p and the following opening p have no space between them then it will look like a typo where there's no space between sentences. |
I totally forgot to look at this, I've marked your notification as unread so I can look at it again tomorrow. |
Looking at the plugin, it's using the php function What do you guys think of this type of solution? The idea is to use a regex to add a space where an opening tag directly follows a close tag:
|
Just revisited this, sorry for the 6month delay lol. So I can confirm that it still appears to behave in this way. This code:
Outputs this:
If there is a closing paragraph (or even any other element), I believe that a space should occur. |
Hey,
I was wondering if there was a way of dealing with adding an nbsp to replace a paragraph, for example an excerpt of text looks like this at the moment:
operators and infrastructure owners.We work on
Could we change this somehow to output like this?:
operators and infrastructure owners. We work on
The text was updated successfully, but these errors were encountered: