[Solved] Copy/Paste Html does not preserve formatting

Discuss the word processor
Post Reply
User avatar
kenppy
Posts: 48
Joined: Tue Feb 10, 2015 7:28 pm

[Solved] Copy/Paste Html does not preserve formatting

Post by kenppy »

Is there a way that a html web page can be copied to Writer preserving the formatting?
In particular paragraphs and italics.
Last edited by robleyd on Fri Aug 23, 2024 12:20 am, edited 1 time in total.
Reason: Tagged [Solved]. Add green tick
ApacheOpenOffice 4.1.7
Mac OsX 14.6.1
User avatar
robleyd
Moderator
Posts: 5509
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Copy/Paste Html does not does not preserve formatting

Post by robleyd »

I created a file from this web page using Paste Special/HTML and breaking external links to embed the image. I can get a similar result with a simple paste - Ctrl+V.
copyhtml.png
copyhtml.png (40.3 KiB) Viewed 2254 times
Not all web pages are created equal - often they are a created with Javascript or some other language and bear little resemblance under the bonnet to a traditional HTML page. Even some usage of CSS will render a page in a way that won't be preserved. Perhaps the page(s) you are trying to copy are such?
Slackware 15 (current) 64 bit
Apache OpenOffice 4.1.16
LibreOffice 26.2.3.2; SlackBuild for 26.2.3 by Eric Hameleers
---------------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.
User avatar
RoryOF
Moderator
Posts: 35210
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Copy/Paste Html does not preserve formatting

Post by RoryOF »

A quick and dirty way to do a small number of pages is to take a screenshot of each page and insert it into your Writer document as an image.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
User avatar
kenppy
Posts: 48
Joined: Tue Feb 10, 2015 7:28 pm

Re: Copy/Paste Html does not preserve formatting

Post by kenppy »

I have done copying successfully before so I thought that this time I was missing something.
I looked for an alternative source and it worked, I wasn't aware of different flavours of html, must have been lucky every other time!
ApacheOpenOffice 4.1.7
Mac OsX 14.6.1
User avatar
kenppy
Posts: 48
Joined: Tue Feb 10, 2015 7:28 pm

Re: Copy/Paste Html does not preserve formatting

Post by kenppy »

Found an alternative source to copy from - and it worked
ApacheOpenOffice 4.1.7
Mac OsX 14.6.1
Post Reply