Summary: | automatic date-style is replaced on document load | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Wahrendorff <his> |
Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | nn.libo |
Version: | 4.1.3.2 release | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Windows (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | ODT and content.xml before and after reopening it in Writer |
Detail: You might need to use a different language where i have used 'English(USA)' if you are in an american english environment. 1) create a new Writer Document 2) write a little Text 3) select all by pressing ctrl-a 4) Under Format>Text choose Language English(USA) 5) Under Extras>Language>Whole Text choose English(USA) 6) Place cursor anywhere inside text 7) Insert>Field>other>variable>Formula 8) Value: 0 9) Format>other formats 10) Language: English(USA) 11) Category: Date 12) Format: December 31, 1999 13) Leave 'other formats' by pressing 'ok' 14) 'insert' formula into text and press 'close' 15) Save the document and close Writer 16) By unzipping the document verify that it contains the correct automatic date-style in content.xml ("N10076" in my case) 17) reopen the document in Writer 18) do a 'no change' to make it saveable again (insert a blank and delete it again) 19) Save the document and close Writer 20) By unzipping the document verify that it does not contains the correct automatic date-style anymore in content.xml. Instead there is a standard date-style without language and country ("N76" in my case) After step 17) one could edit the formula, go to 'other formats' and see that the language has changed to 'automatic' Please note that * a simple 'Date'-Field will not be sufficient for our usecase due to calculations * The document is edited, saved and reopend many times before finally evaluating all fields. Although I don't know what you mean in step 4 (there is no "Format > Text" in my installation) I'm able to reproduce the behavior with 4.3.0.1. Build ID: 9ed0c4329cf13f882dab0ee8b9ecd7b05e4aafbb (Linux rpm x64) ==> changing to NEW |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
Created attachment 101347 [details] ODT and content.xml before and after reopening it in Writer In a german environment i try to embed a specifically formatted Date with EN-US locale using a Field>Formula and a language-setting of EN-US. At first I seem to succeed (exact procedure see below) but when i save the document and open it again, the language-setting of my field has changed to 'automatic' and my special format is gone. When I close Writer, open the document again and save it again and compare the two 'content.xml' files, i notice that the first content.xml contains an automatic date-style for my format while in the second one it is gone. So it seems to me, that on opening the ODT, Writer 'optimizes' away my date-style.