Topic on Extension talk:VisualEditor

Jump to navigation Jump to search

Line breaks are disappearing

26
Summary by Whatamidoing (WMF)
Lanthanis (talkcontribs)

MW 1.27

VE 0.1.0

Hi @Mattflaschen-WMF, @Whatamidoing (WMF)

I want to add new paragraphs and just add new lines as if I would use MS Word but after saving the "empty" lines and therefore the paragraph disappears. Seems that VE just deletes empty lines. I also noticed this behavior on this site, is there any possibility to keep these "empty" lines ?

Thanks in advance!

Lanthanis (talkcontribs)

Like this:

Some text

(empty line)

(empty line)

new text.

Whatamidoing (WMF) (talkcontribs)

VisualEditor's visual mode reduces multiple consecutive blank lines to a single blank line.

Why do you want two blank lines displayed between paragraphs?

Lanthanis (talkcontribs)

Just to mark off seperate sections.

Whatamidoing (WMF) (talkcontribs)
Konjurer (talkcontribs)

I think this is a big issue and a lot of my users complain about it. Not only does it remove blank lines it also removes any space after bullet point lists and numbered lists and it look really ugly.

Lanthanis (talkcontribs)

Indeed!

Whatamidoing (WMF) (talkcontribs)

@SSastry (WMF), is there any need for Parsoid to remove all of the blank lines after a list and before the next regular paragraph? It is a bit easier, when editing in wikitext mode, to have a (single) blank line before and after every list.

SSastry (WMF) (talkcontribs)

Parsoid doesn't remove newlines on its own. But, yes, we can update the defaults so that we add newlines before and after a list (this only applies to newly inserted and possibly edited lists).

SSastry (WMF) (talkcontribs)

@Whatamidoing (WMF)could you please file a phab task requesting this newline before/after a list? Thanks.

hatamidoing (WMF)W

Whatamidoing (WMF) (talkcontribs)
AdSvS (talkcontribs)

This is not a solution to the general issue. In wikitext you can add a new line (<br />) but in VE there is no such option, is there?

5.103.137.211 (talkcontribs)

Will it be possible in the future, to not have VE remove the blank lines ? Not just before/after a list but overall ?

Lanthanis (talkcontribs)

I would appreciate this too, @Whatamidoing (WMF) and @SSastry (WMF).

I would like to structure my articles the way I feel comfortable and not being forced to use your structure policy (don't take this personal). Or maybe some tag recognized by VE?

SSastry (WMF) (talkcontribs)

As I said earlier, Parsoid doesn't remove newlines on its own. If there is a bug related to how Parsoid is converting VE's HTML to wikitext, please file a bug with details. Thanks.

Lanthanis (talkcontribs)

@SSastry (WMF) So it is VE, not Parsoid, which deletes the lines ? I'll try to debug this and file a bug as soon as I find it out.

Whatamidoing (WMF) (talkcontribs)

I've filed it as phab:T184755. I don't know whether the team will implement it.

124.121.195.196 (talkcontribs)

I'd also love to see this resolved. Give us a tag or a keyword, something that lets us control our layout. But isn't VE supposed to be WYSIWYG?

Stefan

SSastry (WMF) (talkcontribs)

We'll investigate this on the Parsoid end soon.

Whatamidoing (WMF) (talkcontribs)

VisualEditor's visual mode is supposed to be rich-text, which is not quite the same thing as WYSIWYG.

Lanthanis (talkcontribs)
Konjurer (talkcontribs)

How is this task coming along SSastry? Although VE is brilliant, this is really an annoying behavior of the VE. As admin of my company's wiki, I field A LOT of questions about this behavior. Once the issue is resolved, how long does it take to make it into the VE extension for the general public?

Thanks for your hard work!

SSastry (WMF) (talkcontribs)

This is coming along -- I have a patch to fix a related issue in Parsoid before we can address this newline handling issue. Note that this is an entirely Parsoid only change. We release debian packages once in 6 months. So, the next release will be in October. So, if you want a version that fixes this problem once we have it in master, you will have to install the master version of Parsoid from the git repo. Anyway, let us wait till the fixes land.

Konjurer (talkcontribs)

@SSastry (WMF) How is this coming along? This is still the most complained about thing I receive. Can we expect a fix in October for the disappearing blank link issue? Thanks!

SSastry (WMF) (talkcontribs)
SSastry (WMF) (talkcontribs)

Sorry about the lack of updates but the dependency patches were merged and deployed. We'll try to get this in before the next release.

Reply to "Line breaks are disappearing"