[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#944330: debian-policy: Hyphenation damage on plain text output



Control: reassign -1 python3-sphinx
Control: retitle -1 No way to disable line breaks at hyphens for text output
Control: affects -1 debian-policy

Guillem Jover <guillem@debian.org> writes:

> The rendering to plain text contain many technical terms, program
> names, email addresses, make rule names, etc., that have been cut
> at their hypen at the end of line. This makes copy&paste more
> difficult, and it reads confusingly.

> I started collecting a list of these, but there are quite many, so
> before wasting time, I guess it's best to canvas whether you agree
> this should be fixed. :)

Sphinx uses Python's standard textwrap module to wrap text output.  That
class has an option, break_on_hyphens, which defaults to True but can be
set to False.  For Policy, we want to set it to False, but Sphinx doesn't
expose a configuration setting that allows this.

I'm reassigning this bug to Sphinx, but it's really an upstream feature
request.

-- 
Russ Allbery (rra@debian.org)              <https://www.eyrie.org/~eagle/>


Reply to: