public View breakView(int axis, int p0, float pos, float len) {
            if (axis == View.X_AXIS) {
                checkPainter();
                int p1 = getGlyphPainter().getBoundedPosition(this, p0, pos, len);
                try {
                    // if the view contains line break char break the view
                    int index = getDocument().getText(p0, p1 - p0).indexOf(WrapHTMLFactory.SEPARATOR);
                    if (index >= 0) {
                        GlyphView v = (GlyphView)createFragment(p0, p0 + index + 1);
                        return v;
                    }
                } catch (BadLocationException ex) {
                    // should never happen
                }

            }
            return super.breakView(axis, p0, pos, len);
        }
Forces a line break.

@return View.ForcedBreakWeight
src/cn/ieclipse/smartim/common/WrapHTMLFactory.java