[Solved] Preventing justification within paragraph

Discuss the word processor
Post Reply
erry85
Posts: 4
Joined: Wed Nov 29, 2023 6:24 am

[Solved] Preventing justification within paragraph

Post by erry85 »

Hi there, I'm having a problem indenting the line before the last line of a paragraph, I am using the ctrl+enter combination and the appropriate setting but it isn't working, can you help me please?
Screenshot 2023-11-29 at 01.31.18.png
Screenshot 2023-11-29 at 01.31.18.png (87.21 KiB) Viewed 1997 times
Last edited by Hagar Delest on Wed Nov 29, 2023 11:32 pm, edited 3 times in total.
Reason: Title edited.
OpenOffice 4.1.14 macos Sonoma Version 14.0 (23A344)
erry85
Posts: 4
Joined: Wed Nov 29, 2023 6:24 am

Re: Indenting last line of paragraph

Post by erry85 »

Problem solved, I put a "tab" character at the end of the line with the expanded characters and it indented the line on the left.
OpenOffice 4.1.14 macos Sonoma Version 14.0 (23A344)
User avatar
Zizi64
Volunteer
Posts: 11505
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: [Solved] Indenting last line of paragraph

Post by Zizi64 »

I'm having a problem indenting the line before the last line of a paragraph, I am using the ctrl+enter combination
Because that is not the last line of the Paragraph. Only the line with ENTER at the end of it will be the LAST line of the Paragraph.
The Line Feed character will not close the Paragraph.
Tibor Kovacs, Hungary; LO7.5.8/25.8.5.2 /Win7-10-11 x64Prof.
PortableApps: LO3.3.0-25.8.5.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
RoryOF
Moderator
Posts: 35210
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Solved] Indenting last line of paragraph

Post by RoryOF »

Also, for Left to Right text, as in many Western countries, an indent is space to the left of the line, as in this sample
.

Code: Select all

text text text text
text text text text
       text text text
What I think the OP meant was that he wished the last line left aligned as in this sample.
.

Code: Select all

text text text text
text text text text
text text text
That is easily done by setting Last line Left, as in his screenshot, and terminating the paragraph with the Enter key, as Zizi64 said.

Very rarely does one have to use line breaks (Shift Enter) in OpenOffice.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
erry85
Posts: 4
Joined: Wed Nov 29, 2023 6:24 am

Re: [Solved] Indenting last line of paragraph

Post by erry85 »

I wanted a line break because I didn't want to break the paragraph. Anyway, thanks for the clarifications, using the "tab" hack did it for me and indented that line nicely.
OpenOffice 4.1.14 macos Sonoma Version 14.0 (23A344)
User avatar
Hagar Delest
Moderator
Posts: 33633
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: [Solved] Preventing justification within paragraph

Post by Hagar Delest »

I have changed the title.
Nice hack BTW, I learnt something with your trick.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 25.2 portable on Windows 11.
erry85
Posts: 4
Joined: Wed Nov 29, 2023 6:24 am

Re: [Solved] Preventing justification within paragraph

Post by erry85 »

No problem, thank you for changing the title, it's more appropriate now!
OpenOffice 4.1.14 macos Sonoma Version 14.0 (23A344)
User avatar
RoryOF
Moderator
Posts: 35210
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Solved] Preventing justification within paragraph

Post by RoryOF »

This is an X-Y problem.

The result depends on the length of text in the paragraph, and also on the tab settings for that paragraph. By default these are every 12.5 mm; it they are changed, as for example to remove most or all of them, then the line feed character wraps the text at the next tab to the right. Insert more text in the body of the paragraph and the last line changes.

Better to terminate the paragraph with an Enter key, allowing the default last line setting align the line to the left. Adjust the paragraph styles so there is no inter-paragraph white space and (if necessary) no leading indent on the first line of the new paragraph.

Proper use of Styles rather than direct formatting will avoid inelegant fixes.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
User avatar
Hagar Delest
Moderator
Posts: 33633
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: [Solved] Preventing justification within paragraph

Post by Hagar Delest »

The issue is not with the last line but with a line within the paragraph.
I also tried with a different tab settings and it works the same.
The hack is quite clever IMHO because you don't need a hassle of styles at all. If the string belongs to a single paragraph but you need that string not to be justified, then it does the job.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 25.2 portable on Windows 11.
Post Reply