Bug 112229 - Styles and Formatting - Text Body does not retain certain commands
Summary: Styles and Formatting - Text Body does not retain certain commands
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-05 11:30 UTC by Susan Cragin
Modified: 2017-10-25 11:26 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Cornell notes form in ODT showing indent behavior (16.63 KB, application/vnd.oasis.opendocument.text)
2017-09-05 11:30 UTC, Susan Cragin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Susan Cragin 2017-09-05 11:30:35 UTC
Created attachment 136027 [details]
Cornell notes form in ODT showing indent behavior

I have a document that I use as a template to take Cornell Notes. For this, the margin has to be very large on the left-hand side. 

And so for "default style" and "text body" I enter the following: 

Indent
  before text 1.80"
  after text 0.00"
  first line -0.2

Spacing
  above paragraph 0.04"
  below paragraph 0.04"

unchecked box "Don't add space..."

Line spacing: 
  1.15 Lines. 


And so, when I check CTL-0, my text should go to default style. It does, except that the indent spacing does NOT transfer.
Comment 1 Buovjaga 2017-09-10 15:30:51 UTC
I focused on the bit that says: Oh dear I hit CTL-0 to get “text body” or “default style, and the indents didn’t happen. This is supposed to be indented 1.4.”

It appears it is stuck in a numbering style even though it is masquerading as Text Body :(

I unzipped the document and uploaded content.xml and styles.xml to http://xmlbeautifier.com/ and beautified them so I could make some sense of the markup.

In the content.xml we see this representation:
<text:p text:style-name="P2">Oh dear I hit CTL-<text:span text:style-name="T1">0 to get “text body” or “default style, and the indents didn’t happen. This is supposed to be indented 1.4.”</text:span></text:p>

Earlier in the content.xml the P2 and P3 styles are defined as:
<style:style style:name="P2" style:family="paragraph" style:parent-style-name="Text_20_body" style:list-style-name="WWNum1" />
<style:style style:name="P3" style:family="paragraph" style:parent-style-name="Text_20_body">

The styles.xml does not contain definitions for P2 or P3, but it does have <text:list-style style:name="WWNum1">

Is it possible for you to give minimal steps on how to arrive at this sort of situation?
Comment 2 Susan Cragin 2017-10-25 11:26:07 UTC
You might want to get rid of this bug, since the problem seems to have been corrected in later versions. 

Or perhaps it was that I started with a fresh blank slate and did it over. 
I had been experimenting with the first, and probably had layers upon layers of changes and commands. 

But the bug does seem to be solved. I'll file another one, with more careful information, if the situation pops up again.