poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49593] New: XWPFRun do not preserve spaces
Date Wed, 14 Jul 2010 19:41:17 GMT
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: dev@poi.apache.org
        ReportedBy: butchik@gmail.com


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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message