Bug 1108594

Summary: a file produced by writer/web has become impossible to edit on source lvl if it contains an image
Product: [Fedora] Fedora Reporter: Gerard van der Veen <contact.adbdr>
Component: libreofficeAssignee: Caolan McNamara <caolanm>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 20CC: caolanm, dtardon, erack, ltinkl, mstahl, sbergman
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-06 11:08:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
the file resulting from step 2 none

Description Gerard van der Veen 2014-06-12 09:52:52 UTC
Created attachment 908038 [details]
the file resulting from step 2

Description of problem:
Until recent a .html file created/edited by writer/web would include an image by referencing the relative path to the image file. This has been modified as to contain the whole image, png encoded, in the .html file. The consequence is that the .html file can no more be edited on source level (lines too long).
The source level editor included in writer/web will accept modification without warning but the resulting file will be corrupted. (external editors like Bluefish or Kwrite will give a warning).
The need for editing on source level is evident: with the wysiwyg editor one can not add javascript for instance.

Version-Release number of selected component (if applicable):
4.2.4.2

How reproducible:
100%

Steps to Reproduce:
1.create a new document of type .html, include a table and put in one cell some texte and in another cell an image (Insert - From a file)
2.select Display mode - Source html, modify just slightly the texte, write the file to disk and close the file
3.re-open the file in Display mode Web layout, the texte is OK, but the image is displayed in miniature plus raw code

Actual results:
the file is corrupted


Expected results:
the display as in step one with only the modification made in step 2 as difference

Additional info:
the .html file created in step 1, when saved before step 2 can not be read by libreoffice 3.4.6 (which I use currently in an old partition as bypass for this problem)