Bug 72768 - FORMATTING: Allow wrapping / breaking of URLs at character limit for areas with limited space (i.e., labels)
Summary: FORMATTING: Allow wrapping / breaking of URLs at character limit for areas wi...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
Depends on:
Blocks: Anchor-and-Text-Wrap Hyperlink Paragraph Word-Line-Break
  Show dependency treegraph
Reported: 2013-12-16 22:50 UTC by pete
Modified: 2024-05-10 12:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

sample ODT displaying issue both on page and in frame (14.95 KB, application/vnd.oasis.opendocument.text)
2023-08-02 14:43 UTC, Stéphane Guillou (stragu)

Note You need to log in before you can comment on or make changes to this bug.
Description pete 2013-12-16 22:50:11 UTC
I'm bulk printing labels via a template merging fields from a database and one of the fields is a url.

1. I want the url to be laid out using word wrapping at the character/grapheme/symbol/whatever-unicode-calls-it level (similar to how terminals and naive text editors wrap words) as opposed to using a sophisticated hyphenation dictionary so I can maximize all the horizontal space possible.


2. I want to disable the insertion of a hyphen character since I don't want the hyphen to be mistaken as a literal one (and also because the character consumes horizontal space).
Comment 1 Owen Genat (retired) 2014-07-16 13:27:28 UTC
I can understand how (1) would be required, particularly where space is limited, but I am not certain how this might best be implemented. It tends to imply detection / special treatment for URLs. I doubt the hyphenation facility (2)  would be the best method / location for supporting (1), but I am not certain either. A separate option may be needed.

Summary amended for clarity. Severity set to enhancement. Status set to NEW to try and get some input into how feasible this may be (or not).
Comment 2 Alex Thurgood 2015-01-03 17:38:19 UTC Comment hidden (no-value)
Comment 3 Stéphane Guillou (stragu) 2023-08-02 14:43:46 UTC
Created attachment 188729 [details]
sample ODT displaying issue both on page and in frame

I guess this is not specific to labels nor to hyperlinks, the request is to allow some "wrap at character" paragraph setting instead of per "word", inside and outside frames.
This attachments shows both cases: not much horizontal space on page or in frame. URL is split over three line when it could fit in two.

Not sure how such a setting would interact with text alignment settings, and with off-page spaces (see for example bug 155494).

My guess is that such a setting would live in the Paragraph dialog, Text Flow tab.

Currently, the hyphenation settings don't allow a workaround.

Tested in:

Version: (X86_64) / LibreOffice Community
Build ID: 47ca3f1f762352b488d58b3bf23d5776576f1cca
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 4 Stéphane Guillou (stragu) 2023-08-02 14:52:42 UTC
- In OOo 3.3, the attachment 188729 [details] would display the URL on two lines.
- Since LO 6.0, the URL is split on three lines _only on page_
- Since LO 6.4, both URLs spread over three lines