MohamedSaeed / xdocreport

Automatically exported from code.google.com/p/xdocreport
1 stars 0 forks source link

Left and right spaces in String objects are lost #365

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello..
I will know if and how it' possible to have in output a String with left and 
right spaces. In my test i have developer.name thant contains left spaces 
before the real name; i want so becouse i need to indent the name so the list 
of developers   

[#list developers as developer]${developer.name}
[/#list]

seems to me like this:
pamela
 federico
  rodrigo
   filippo

in the example below the last name is definede like this:  
String name="   filippo" 
and other names are similar.
What i see in the output instead is a list like this:
pamela
federico
rodrigo
filippo

Left spaces are lost. What i can do?

Original issue reported on code.google.com by cesare.a...@gmail.com on 12 Feb 2014 at 9:19

GoogleCodeExporter commented 9 years ago
Try with \t character.

Original comment by angelo.z...@gmail.com on 12 Feb 2014 at 10:28

GoogleCodeExporter commented 9 years ago
Hello.

Thanks for your work on XDocReport!

I am having the same problem as the original poster. I want to put the string " 
is" into my report. When I run the report, I find that the leading space is 
stripped away.

Using a tab is not a good workaround for me because I am inserting the string 
in the middle of a sentence. Any suggestions?

Original comment by rtroc...@gmail.com on 24 Jul 2014 at 10:28

GoogleCodeExporter commented 9 years ago
Perhaps XDocReport should add xml:space="preserve" when docx is preporocessed. 
But no time today to study that. Any contribution are welcome!

Original comment by angelo.z...@gmail.com on 25 Jul 2014 at 7:39