Ask Your Question
1

writer destroys some html

asked 2012-09-19 18:54:23 +0200

Alan gravatar image Alan
11 1

updated 2013-01-31 05:55:13 +0200

qubit gravatar image qubit flag of United States
5693 3 48 41

When editing html documents, in Html Source mode, Writer accepts html tags and saves them (for example, for example SPAN tags.. But if you switch back to Web Layout mode, and then back to Html Source mode,that html may have been destroyed.

For example:

<span title="We use your personal information only to communicate with you."
      style="color: blue">our privacy policy</span>

becomes:

<FONT COLOR="#0000ff">our privacy policy</FONT>

I like using Writer to edit html, but this is a problem. Any suggestions for how to get it to preserve custom html?

Thanks

delete close flag offensive retag edit

Comments

Hi @Alan,

This sounds like a bug that would qualify as "data loss." As you might be aware, the LO community takes data loss bugs quite seriously. Please file a bug about this problem. The QA team will be happy to help you track down this issue! Thanks!

qubit ( 2013-01-31 05:54:49 +0200 )edit

3 Answers

Sort by » oldest newest most voted
0

answered 2013-02-24 21:21:20 +0200

qubit gravatar image qubit flag of United States
5693 3 48 41

Hi @Alan,

This sounds like a bug that would qualify as "data loss." As you might be aware, the LO community takes data loss bugs quite seriously.

If installing the latest release doesn't seem to fix this problem, please file a bug and provide a list of steps that can reproduce it. The QA team will be happy to help you track down this issue!

Please post a link to any bugs you file in a comment below using the format "fdo#123456".

Thanks!

link delete flag offensive edit
0

answered 2012-09-27 20:33:50 +0200

Alan gravatar image Alan
11 1

Thank you. I'm aware of that.

The problem is that, once you've saved the document as .html, and edited some of the html code, if you go then switch back to "Web Layout mode, the editing you did while in html mode may be affected, as in my question: I used html mode to place a SPAN tag around the phrase "our privacy policy". The SPAN tag had the "Title" attribute set to "We use your personal information only to communicate with you.". Hold your mouse over the first instance of "our privacy policy" in my question, or view the source code to see what I mean. Then I switched back to Web Layout mode and made some edits elsewhere in the document. When I previewed the document after saving it, the SPAN tag and its title attribute was gone, replaced by the FONT tag. (Hold your mouse over the second instance of "our privacy policy" in my question, or view the source code to see what I mean.

link delete flag offensive edit
0

answered 2012-09-19 22:57:43 +0200

mariosv gravatar image mariosv flag of Spain
4629 20 45

Maybe this can help:

image description

link delete flag offensive edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-09-19 18:54:23 +0200

Seen: 71 times

Last updated: Feb 24