options nomargins dont_wrap_pre and width strip spaces

Bug #806749 reported by Ian! D. Allen on 2011-07-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lynx-cur (Ubuntu)
Undecided
Unassigned

Bug Description

<!--
Command line:
  lynx -dump -force_html -nomargins -dont_wrap_pre -width=70 THISFILE

Incorrect output (missing spaces between words when word ends at line end):

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

-->
<html>
<head>
  <title>Lynx Bug</title>
</head>
<body>
    <p>
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    </p>
</body>
</html>

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: lynx 2.8.8dev.7-1
ProcVersionSignature: Ubuntu 2.6.38-10.46-generic 2.6.38.7
Uname: Linux 2.6.38-10-generic x86_64
Architecture: amd64
Date: Wed Jul 6 21:27:29 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
PackageArchitecture: all
SourcePackage: lynx-cur
UpgradeStatus: No upgrade log present (probably fresh install)

Ian! D. Allen (idallen) wrote :
Ian! D. Allen (idallen) wrote :

Related bug:

<!--
Command line:
  lynx -dump -force_html -nomargins -dont_wrap_pre -width=71 THISFILE

Incorrect output (not wrapped at 71):

xxxxxxxxxxx xxxxxxxxxxx xxxxxxxxxxx xxxx xxxxxxxxx xxxxxxx xxxxxxxxxx YYYYYYYYYYY YYYYYYYYYYY YYYYYYYYYYY YYYY YYYYYYYYY YYYYYYY YYYYYYYYY zzzzzzzzzzz zzzzzzzzzzz zzzzzzzzzzz zzzz zzzzzzzzz zzzzzzz zzzzzzzzz AAAAAAAAAAA AAAAAAAAAAA AAAAAAAAAAA AAAA AAAAAAAAA AAAAAAA AAAAAAAAA

Removing "-dont_wrap_pre" produces correct output, even though it shouldn't
have any effect since no <pre> is being used:

Command line:
  lynx -dump -force_html -nomargins -width=71 THISFILE

Correct output (wrapped at 71):

xxxxxxxxxxx xxxxxxxxxxx xxxxxxxxxxx xxxx xxxxxxxxx xxxxxxx xxxxxxxxxx
YYYYYYYYYYY YYYYYYYYYYY YYYYYYYYYYY YYYY YYYYYYYYY YYYYYYY YYYYYYYYY
zzzzzzzzzzz zzzzzzzzzzz zzzzzzzzzzz zzzz zzzzzzzzz zzzzzzz zzzzzzzzz
AAAAAAAAAAA AAAAAAAAAAA AAAAAAAAAAA AAAA AAAAAAAAA AAAAAAA AAAAAAAAA

-->
<html>
<head>
  <title>Lynx Bug</title>
</head>
<body>
    <p>
xxxxxxxxxxx xxxxxxxxxxx xxxxxxxxxxx xxxx xxxxxxxxx xxxxxxx xxxxxxxxxx
YYYYYYYYYYY YYYYYYYYYYY YYYYYYYYYYY YYYY YYYYYYYYY YYYYYYY YYYYYYYYY
zzzzzzzzzzz zzzzzzzzzzz zzzzzzzzzzz zzzz zzzzzzzzz zzzzzzz zzzzzzzzz
AAAAAAAAAAA
AAAAAAAAAAA
AAAAAAAAAAA
AAAA
AAAAAAAAA
AAAAAAA
AAAAAAAAA
    </p>
</body>
</html>

Ian! D. Allen (idallen) wrote :

Note that Launchpad mangled and wrapped my bug report, above, so that the incorrect and correct outputs look the same. Try the input file and the command line to see that they are not the same output.

Thomas Dickey (dickey-his) wrote :

I've made a fix for this which will be in 2.8.8dev.15

Thomas Dickey (dickey-his) wrote :

2.8.8dev.15 has been released.

Changed in lynx-cur (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers