Bug 61495

Summary: Indentation difference for Backspace and Shift+Enter after conversion to .doc/.docx
Product: LibreOffice Reporter: Maciej Rumianowski <maciej.rumianowski>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium    
Version: 3.6.5.2 release   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Side-By-Side difference
.odt File with Identation
Converted Indent-Bug.odt -> .doc
Converted Indent-Bug.odt -> .docx
docx file to test what Word creates
same file, saved as .odt in Word2012

Description Maciej Rumianowski 2013-02-26 09:27:06 UTC
Created attachment 75562 [details]
Side-By-Side difference

Indentation is being lost after conversion to .doc or .docx file if indentation was made with Backspace.

Steps to reproduce:
1. Create .odt file with Bullets
2. Indent with shift+enter or backspace
3. Save As .doc/.docx
4. Close and Open .doc/.docx file
5. Backspace Indentation is lost
Comment 1 Maciej Rumianowski 2013-02-26 09:29:03 UTC
Created attachment 75564 [details]
.odt File with Identation
Comment 2 Maciej Rumianowski 2013-02-26 09:29:29 UTC
Created attachment 75565 [details]
Converted Indent-Bug.odt -> .doc
Comment 3 Maciej Rumianowski 2013-02-26 09:29:47 UTC
Created attachment 75566 [details]
Converted Indent-Bug.odt -> .docx
Comment 4 Brenda Granados 2013-02-26 16:05:36 UTC
I cannot reproduce this behavior using LibreOffice Version 4.0.1.0+ on Ubuntu 12.04. I followed the format of a bulleted list as you created it, using shift + enter or the space bar to indent. After I close and reopen the .doc and .docx, the formatting is still the same between either of those and the original .odt document.

I will close this as WORKSFORME, but if it's still a bug for you, or if you have other info or scenarios about this occurence, you can REOPEN.
Comment 5 Maciej Rumianowski 2013-02-26 20:48:02 UTC
Reproduced using Version 4.0.0.3 (Build ID: 7545bee9c2a0782548772a21bc84a9dcc583b89)
Ubuntu 12.10

It is Backspace not space bar. I indent with Backspace as follow: 
1. Hit Enter (Automatically new Bullet is inserted)
2. Hit Backspace (<-) Bullet disappears
Comment 6 Brenda Granados 2013-02-27 15:35:56 UTC
My mistake, thanks for commenting again. I see that when you use the backspace to erase the bullet, the .docx and .doc files don't retain the formatting. This was confirmed using LibreOffice 4.0.1.0+ on Ubuntu 12.04. Thank you for reporting this!
Comment 7 Maciej Rumianowski 2013-03-01 13:31:29 UTC
I've done some more research, below are differences in flat odt files.
Indent-Bug.fodt:
<text:list xml:id="list1342197654" text:style-name="L1">
    <text:list-item>
     <text:p text:style-name="P2">Test1</text:p>
     <text:list>
      <text:list-item>
       <text:p text:style-name="P3">Test2<text:line-break/>Indent <text:span text:style-name="T1">(Shift+Enter)</text:span><text:line-break/>Indent <text:span text:style-name="T1">(Shift+Enter)</text:span></text:p>
      </text:list-item>
      <text:list-item>
       <text:p text:style-name="P2">Test2</text:p>
       <text:p text:style-name="P2">Indent <text:span text:style-name="T1">(Backspace)</text:span></text:p>
       <text:p text:style-name="P3">Indent <text:span text:style-name="T1">(Backspace)</text:span></text:p>
      </text:list-item>
     </text:list>
    </text:list-item>
    <text:list-item>
     <text:p text:style-name="P3">Test1<text:line-break/>Indent <text:span text:style-name="T1">(Shift+Enter)</text:span></text:p>
     <text:p text:style-name="P3">Indent <text:span text:style-name="T1">(Backspace)</text:span></text:p>
    </text:list-item>
    <text:list-item>
     <text:p text:style-name="P2">Test1</text:p>
    </text:list-item>
   </text:list>
Indent-Bug2.fodt (this was done odt->docx->fodt):
<text:list xml:id="list4803795411" text:style-name="WWNum1">
    <text:list-item>
     <text:p text:style-name="P2">Test1</text:p>
     <text:list>
      <text:list-item>
       <text:p text:style-name="P2">Test2<text:line-break/>Indent (Shift+Enter)<text:line-break/>Indent (Shift+Enter)</text:p>
      </text:list-item>
      <text:list-item>
       <text:p text:style-name="P2">Test2</text:p>
      </text:list-item>
     </text:list>
    </text:list-item>
   </text:list>
   <text:p text:style-name="Standard">Indent (Backspace)</text:p>
   <text:p text:style-name="Standard">Indent (Backspace)</text:p>
   <text:list xml:id="list2091705632" text:continue-numbering="true" text:style-name="WWNum1">
    <text:list-item>
     <text:p text:style-name="P2">Test1<text:line-break/>Indent (Shift+Enter)</text:p>
    </text:list-item>
   </text:list>
   <text:p text:style-name="Standard">Indent (Backspace)</text:p>
   <text:list xml:id="list1087656376" text:continue-numbering="true" text:style-name="WWNum1">
    <text:list-item>
     <text:p text:style-name="P2">Test1</text:p>
    </text:list-item>
   </text:list>

Differences are:
1. When Indent with Shift+Enter there is 1 paragraph <text:p>...</text:p> with line breaks
   When Indent with Backspace there are 3 paragraphs no line breaks
2. In Indent-Bug2.fodt paragraphs with "Indent (Backspace)" are outside list <text:list>...<text:list>
Comment 8 Cor Nouws 2013-03-02 22:52:43 UTC
Created attachment 75805 [details]
docx file to test what Word creates

Word does the same when hitting backspace the first time, at the start of an empty line with bullet. But different the next time you hit backspace there.

I attach a docx with the test, and in a moment the same, saved as ODT in WOrd2010
Comment 9 Cor Nouws 2013-03-02 22:53:25 UTC
Created attachment 75806 [details]
same file, saved as .odt in Word2012

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.