15 Oct
2011
15 Oct
'11
3:29 a.m.
Hi, In the vim module, I use vim to generate TeX code that looks roughly as ~~~ \SYN[Type]{public} \SYN[Type]{static} \SYN[Type]{void} main\SYN[javaParen]{(}String args\SYN[javaParen]{)} \{ System.out.println\SYN[javaParen]{(}\SYN[Constant]{"Hello World"}\SYN[javaParen]{)} ; \} ~~~ When generating pdf output, I simply set appropriate catcodes so that the line breaks and leading white spaces are significant. However, when exporting to xml, leading white space is ignored while line break is translated to <break/>. How can I export in such a way that leading white spaces are preserved (and ideally no <break/> is generated, but I can deal with that using CSS). Aditya