Closed Bug 15909 Opened 25 years ago Closed 25 years ago

line breaking on ' after link with .

Categories

(Core :: Internationalization, defect, P2)

All
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: dbaron, Assigned: ftang)

References

()

Details

Attachments

(3 files)

DESCRIPTION:  Currently line breaks are allowed before an ' (apostrophe) that
immediately (with no space) follows an inline element containing a ".", for
example, you are breaking (in the above URL):

<a href="http://www.mozilla.org">mozilla.org</a>'s

as:

mozilla.org
's

when the window is an appropriate width.  This occurs with other inline
elements, such as SPAN, but does not happen if there is no inline element.

STEPS TO REPRODUCE:
 * Load test case (to be attached)
 * make window size so that the lines barely have to be broken.

ACTUAL RESULTS:
 * The word mozilla.org's is broken at the ' in the first and fourth case.  The
cases are as follows:
    1) <a>mozilla.org</a>'s
    2) <a>mozillaorg</a>'s
    3) mozilla.org's
    4) <span>mozilla.org</span>'s

EXPECTED RESULTS:
 * The entire word mozilla.org's should be on the second line in all 4 cases.

DOES NOT WORK CORRECTLY ON:
 * Linux, apprunner, 1999-10-08-08-M11

ADDITIONAL INFORMATION:

I would assume this is a bug, although I don't know if Unicode specifies line
breaking, and if so, what it says.  Perhaps it's worth checking, though.
Status: NEW → ASSIGNED
Target Milestone: M12
Hardware: PC → All
Target Milestone: M12 → M13
I try our nsILineBreaker again and I think the bug is not inside nsILineBreaker.
I think the bug is inside nsTextFrame.cpp or other code which call the
nsTextTransformer
Priority: P3 → P2
The problem actually have nothing to deal with ' . The problem is related to
'.'(period) . That is why if there are no . between mozilla and org it will work
fine. Fix check in 1.20 of nsJISx4501LineBreaker.cpp
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
I verified this in 2000020808 Win32, 2000020809 Linux, and 2000020410 Mac build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: