[Libreoffice-bugs] [Bug 107253] New: Import from docx with variable in ASK field produces invalid ODF on resave
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Apr 18 23:15:41 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=107253
Bug ID: 107253
Summary: Import from docx with variable in ASK field produces
invalid ODF on resave
Product: LibreOffice
Version: 5.4.0.0.alpha0+ Master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: rb.henschel at t-online.de
Created attachment 132672
--> https://bugs.documentfoundation.org/attachment.cgi?id=132672&action=edit
example with ASK and REF field to be converted
The attached document has a variable myVar, which was set by an ASK field and
has a REF field to show its value. (Besides that it has some info text to
remind me how to use fields in Word.)
Open the attached document.
Without any changes save it in odt-format.
The odt-Format has invalid parts:
The ASK field was translated to a <text:bookmark> element and a
<text:variable-input> element. The <text:variable-input> element was written
with attributes text:name, text:description, text:display, text:formula,
office:value-type, and office:string-value.
But the attributes text:formula and office:string-value are not allowed for a
<text:variable-input> element.
To get the same behavior as in Word neither office:string-value nor
text:formula is needed, but the content of the <text:variable-input> element is
the value of the variable. The ASK field does not show its content in Word. To
get this behavior, the attribute text:display="none" can be used.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170418/611c8b13/attachment.html>
More information about the Libreoffice-bugs
mailing list