You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Francisco2626 <fa...@isaltda.com.uy> on 2011/05/04 14:35:18 UTC

XWPF spaces in charRun

Hi I still have not been able to find the information on the number of spaces
between two words.
For example: "hello      world". (6 spaces)
The only parameter that I´ve found is: space = "preserve". But this does not
tell me the number of spaces.

Thanks.
Francisco.

--
View this message in context: http://apache-poi.1045710.n5.nabble.com/XWPF-spaces-in-charRun-tp4369711p4369711.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: XWPF spaces in charRun

Posted by Francisco2626 <fa...@isaltda.com.uy>.
But how? because in the xml the spaces don't appear.
Example:

"Hello this is       an example"

<w:p w:rsidR="003901E4" w:rsidRDefault="003901E4" w:rsidP="005F7057">
   <w:r>
      <w:rPr>
         <w:color w:val="FF0000" /> 
      </w:rPr>
   <w:t>Hello this is</w:t> 
   </w:r>
   <w:r>
      <w:t xml:space="preserve">an example</w:t> 
   </w:r>
</w:p>


--
View this message in context: http://apache-poi.1045710.n5.nabble.com/XWPF-spaces-in-charRun-tp4369711p4372679.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: XWPF spaces in charRun

Posted by Christian Märzinger <ch...@gmail.com>.
Hello!

I think you have to count them for selfe.

the space:preserve attribut is set if the run starts or ends with a blank

fg

Christian

2011/5/4 Francisco2626 <fa...@isaltda.com.uy>

> Hi I still have not been able to find the information on the number of
> spaces
> between two words.
> For example: "hello      world". (6 spaces)
> The only parameter that I´ve found is: space = "preserve". But this does
> not
> tell me the number of spaces.
>
> Thanks.
> Francisco.
>
> --
> View this message in context:
> http://apache-poi.1045710.n5.nabble.com/XWPF-spaces-in-charRun-tp4369711p4369711.html
> Sent from the POI - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>
>