https://issues.apache.org/bugzilla/show_bug.cgi?id=49593

           Summary: XWPFRun do not preserve spaces
           Product: POI
           Version: 3.6
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: major
          Priority: P2
         Component: XWPF
        AssignedTo: [email protected]
        ReportedBy: [email protected]


have to fill paragraph with sentence like this:
Please call us at 1-800-800-8888 after 8 pm.
and I need to make phone number bold
Please call us at <b>1-800-800-8888</b> after 8 pm.

using this code

XWPFRun r = p.createRun();
r.setText("Please call us at");

r = p.createRun();
r.setText("1-800-800-8888");
r.setBold(true);


r = p.createRun();
r.setText(" after 8 pm.");


as a result I have a document that does not have spaces between runs, like
here.

Please call us at<b>1-800-800-8888</b>after 8 pm.
Please call us at1-800-800-8888after 8 pm.

resulting <w:t> node missing attribute xml:space="preserve"

I spent several ours trying to find a solution, but do not see it yet.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to