photo

TheGypsy

shared this problem
2 weeks ago

Employees Involved

photo

SCM

Admin

Statistics

9
Comments
1
Views

Share

Tags

1
votes

Blogs manager article import adds extra characters.

Hi,

I've just imported a couple of articles into Blogs Manager. At the end of every line there are breaking spaces in the source: <br />

Are those there on purpose? Is it possible to remove them? It's a bit annoying when trying to edit the text and there are double spaces after every line where I hit enter.

Official Answer
photo Employee
SCM Posted 2 weeks ago

Thats auto inserted by the editor, use shift-enter so that you don't have double lines.

Add Comment

Comments (9)

photo
1

That sounds like a solution until you try to style the text. When I break the text with shift+enter the paragraphs won't get separated. This makes the whole text one big block of text and is formatted as such.

photo Employee
1

TheGypsy wrote:

That sounds like a solution until you try to style the text. When I break the text with shift+enter the paragraphs won't get separated. This makes the whole text one big block of text and is formatted as such.
Its because shift+enter marks it as <br> enter marks it as <p>

Formatting flows around <p> blocks.

The only other way is to actually go into the HTML source and manually apply formatting.

Also, note that double line breaks etc are styled by the CSS that is used on the site the article appears in.

photo
1

What I do is going into the source and deleting <br /> at each line. Then I go back to editor and apply the formatting I need.

I hoped that this was a bug and I needn't do it manually :/

photo Employee
1

TheGypsy wrote:

What I do is going into the source and deleting <br /> at each line. Then I go back to editor and apply the formatting I need.

I hoped that this was a bug and I needn't do it manually :/

Its not a bug, its just how HTML editors work.

When you hit enter it assumes end of paragraph. The styling in the text editor for scm has styled end of paragraph with double line break.

Once you upload the post the styling for <p> might be completely different.

The most important thing the blog editor in SCM has to do is apply the right HTML codes <p> or <br>.

The actual line spacing depends completely on what blog you upload it to. What you see in the SCM editor is just an aproximation of what might be final.

photo
1

Yeah, I understand that but I still don't see the point of auto inserting line breaks after every line. I mean I haven't seen many webpages where linebrakes were used constantly after every paragraph. It looks a bit strange to me.

If nothing can be done then I have to edit them manually I guess. Thanks anyway!

photo Employee
1

I think there is confusion somewhere.

There shouldn't be an <br> tags in content by default.

Where are the extra line breaks appearing? Is it after import or when you are editing content?

photo
1

It's after I import the .txt files into the Blogs Manager: https://gyazo.com/b8e3d9128f29e168ee2a61822db21896

I think It's like this for ages, because I've just checked some old projects and they all have the <br /> tag. I've never noticed it because I've never cared formatting/styling the text before as I used it with wordpress.com. Now I use it with self hosted domains and I care a bit more :)

photo Employee
1

Is the plain txt file encoded with HTML tags or just a plain article?

What might be happening is that to preserve the linebreaks the editor is inserting the <br> tags.

photo
1

It is just a plain UTF-8 BOM .txt file. It comes straight from SpinnerChief. There isn't any HTML there.

Leave Comment

photo