Solved Copying HTML lists
-
Hello,
i would like to copy the text of a page that contains an HTML list with its number or indicators that it is a list. Currently, this does not happen. The list is copied without any indicator, and in a single text paragraph. This single paragraph, if formatted with common text tools to reformat text with long lines, depending on how we do it, will totally lose the list points.
For example, the following text contains a list that originally had 6 numbered items between two separated normal paragraphs:
Vou postar aqui os exercícios que começamos a fazer na aula de hoje e também a solução dos exercícios 1 e 2, que fizemos em aula.
Criar um parágrafo vazio e criar um botão que ao clicar, adicione um texto da sua escolha no parágrafo.
Criar um campo de texto e um botão, ao clicar no botão, pegar o texto digitado no campo e adicionar uma tag span.
Criar um botão e uma div vazia ambos no HTML, ao clicar no botão, criar e adiciona na div vazia uma tag de parágrafo com algum texto de sua escolha.
Criar um parágrafo com algum texto e um botão, ambos no HTML. Ao clicar no botão, o texto deve desaparecer.
Fazer um GET usando a função fetch para a url "https://jsonplaceholder.typicode.com/todos" e imprimir o resultado no console.
Fazer um parágrafo com algum texto e um botão, ambos no HTML. Ao clicar no botão, mudar a cor do parágrafo.
E agora a solução das questões 1 e 2, que fizemos em aula.
The above is the copied text for the selected text shown in the following part of a screenshot of a site:
p.s.: how do i write quoted text here?
-
@dedeco You should use the latest 5.2 Stable.
Works for me with 5.2.2623.46 Debian 11 KDE.
I could select parts of a website, copy and paste in LibreOffice as formatted text. -
@dedeco said in Copying HTML lists:
p.s.: how do i write quoted text here?
Mark text to quote and hit Quote link.
Or prepend > with text (is a markdown quote) -
@dedeco What is your OS and Vivaldi version? Copying the selected text preserves ordered and unordered lists for me (tried copying a couple of lists from Vivaldi to Word).
Tested in Vivaldi 5.2.2623.46 on Windows 10. -
@pafflick I am using Vivaldi 5.1.2567.66 (Stable channel) stable (64 bits) on Debian.
-
@dedeco You should use the latest 5.2 Stable.
Works for me with 5.2.2623.46 Debian 11 KDE.
I could select parts of a website, copy and paste in LibreOffice as formatted text. -
@DoctorG said in Copying HTML lists:
@dedeco You should use the latest 5.2 Stable.
Works for me with 5.2.2623.46 Debian 11 KDE.
I could select parts of a website, copy and paste in LibreOffice as formatted text.I do not want, most times, formatted text. But i want that list indicators are written somehow in the simple text places.
But after updating Vivaldi, its behaviour changed.
-
@pafflick said in Copying HTML lists:
@dedeco What is your OS and Vivaldi version? Copying the selected text preserves ordered and unordered lists for me (tried copying a couple of lists from Vivaldi to Word).
Tested in Vivaldi 5.2.2623.46 on Windows 10.@pafflick said in Copying HTML lists:
@dedeco What is your OS and Vivaldi version? Copying the selected text preserves ordered and unordered lists for me (tried copying a couple of lists from Vivaldi to Word).
Tested in Vivaldi 5.2.2623.46 on Windows 10.As i just said, i want lists to be written when i copy them to simple text places too. But the updated version does it.
I did not update it before because the Vivaldi repository for Debian still does not show there was a new version after the one i had. To update, i downloaded the .deb file and installed it with dpkg.
-
@dedeco said in Copying HTML lists:
But i want that list indicators are written somehow in the simple text places.
No browser is doing what you want. And i do not see any solution to add this to browser.
And as i know, the OSs can copy as HTML or raw plain text without format. Not more.
-
@pafflick said in Copying HTML lists:
@dedeco What is your OS and Vivaldi version? Copying the selected text preserves ordered and unordered lists for me (tried copying a couple of lists from Vivaldi to Word).
Tested in Vivaldi 5.2.2623.46 on Windows 10.Copy it to notepad. I said that Vivaldi 5.2 behaviour is different from 5.1, but this is false. The list i wanted to copy still works in the same way i described in the first post.
I can copy the list to Libre Office Writer or any other rich text program. But this does not solve my problem: i want to have the numbered list in a simple text file.
-
@DoctorG said in Copying HTML lists:
@dedeco said in Copying HTML lists:
But i want that list indicators are written somehow in the simple text places.
No browser is doing what you want. And i do not see any solution to add this to browser.
And as i know, the OSs can copy as HTML or raw plain text without format. Not more.
If the numbered lists can be copied to Libre Office or any other formatted text program, it is not a hard job to implemented a feature to convert that text to a text without formatting, without losing list indexes. And for lists not numbered, UTF-8 has symbols to use gracefully. But if UTF-8 is not wanted in any context, a minus sign would probably be a good solution for most people, if not all.
-
@dedeco said in Copying HTML lists:
it is not a hard job to implemented a feature to convert that text to a text without formatting, without losing list indexes.
I guess it is less important at this time to add such feature by Vivaldi devs.
If you think such feature is useful, please read Request New Feature, open forum Feature Requests and post request.