Bug 99186 - Inserting horizontal rule shrinks paragraph to font 6
Summary: Inserting horizontal rule shrinks paragraph to font 6
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-09 19:38 UTC by Kruno
Modified: 2016-04-10 01:22 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kruno 2016-04-09 19:38:50 UTC
Write something, go Insert → Horizontal rule and text shrinks to 6pt.

Version: 5.1.2.2
Build ID: d3bf12ecb743fc0d20e0be0c58ca359301eb705f
CPU Threads: 2; OS Version: Linux 3.16; UI Render: default; 
Locale: hr-HR (en_US.UTF-8)
Comment 1 Kruno 2016-04-09 19:46:24 UTC
And can't delete it when there is only one (first and only) row of text and it has horizontal line.
Comment 2 Kruno 2016-04-09 19:51:31 UTC
Or is it a feature? Didn't used on LO to change styles on it's own...
Comment 3 V Stuart Foote 2016-04-09 21:26:20 UTC
This is not a bug. 

A horizontal "rule" is simply a bottom edge border applied to a paragraph, and can be applied in several methods.

There is a formal style defined "Horizontal Line" that when inserted has a paragraph style using 6pt Liberation Serif font and setting a black .05 pt bottom edge border for the paragraph.

The Insert -> Horizontal Line will simply insert an empty paragraph with that style.  The Horizontal Line style can be edited to change color and width of the border edge, as well as font size for any text that is entered into the paragraph.

The paragraph style can also be directly formatted to add a bottom (or top) edge border as desired.

Also, other paragraphs can receive an auto-format applied "direct formatting" of the bottom border edge using these accelerators, the first two produce single lines-the last four are double line bottom borders applied to the preceding paragraph.

--- (three hyphens)
___ (three underscores)


=== (three equals)
*** (three asterisks)
~~~ (three tildes)
### (three hashes)

Removal of the horizontal line is done by removing the direct formatting, or editing the border of the paragraph.

=-ref-=
https://help.libreoffice.org/Common/Drawing_Lines_in_Text
Comment 4 Kruno 2016-04-09 22:23:17 UTC
But now I'm convinced it's a bug (maybe intentionally put there, but _it's_ a bug).

It's wrong to insert _empty_ paragraph just to do formating. I would agree to have style defined for rules and lines in manner they exist in Draw like Graphics style or Presentation style or similar but it's plain wrong to to formating by inserting empty paragraphs.

Horizontal rule is a question of presentation, matter of looks, but paragraph is matter of structure.

And it's not even inserting new (empty) paragraph -- it's setting new style to a paragraph in a way in which it did not at least since 3.3 (cant say for earlier).

So if I want horizontal line I need to insert a new paragraph after one with 'Text body' and then apply 'Horizontal rule'. It's like you build HTML web page and somebody tells you: you know, spacing between two paragraphs should be done by inserting third (empty!) paragraph (<p> tag) instead doing some CSS stuff. How come?

I see it as a bug because if you have even one empty paragraph in your odt document - you've done it wrong (structurally you've done it wrong because you do presentation with structural element).

I was witting in style 'Text body' and wanted to insert a horizontal line, and that style 'Text body' turned into a 'Horizontal line' without asking or notifying and that's not what I wanted to do. I see it right next to a losing content...

I'll turn this to UNCONFIRMED ones more and promise not to thinker any more with it (so you can turn it back to RESOLVED if necessary and I'll live it at that then).
Comment 5 V Stuart Foote 2016-04-10 01:22:00 UTC
(In reply to Kruno from comment #4)
> 
> I was witting in style 'Text body' and wanted to insert a horizontal line,
> and that style 'Text body' turned into a 'Horizontal line' without asking or
> notifying and that's not what I wanted to do. I see it right next to a
> losing content...
> 

Don't use Insert -> Horizontal Line then.

Rather, use the range of autocorrect triplets to apply direct formatting. 

Or edit a style to activate a border of your choice.

Or insert a graphic.