org-mode-ox-odt icon indicating copy to clipboard operation
org-mode-ox-odt copied to clipboard

Extra space after lines of unicode characters produces an empty line

Open QiangF opened this issue 6 years ago • 1 comments

The following snippet when exported will produce a list with an extra space on each item, if the line is all chinese characters, sometimes an empty new line will appear. (depends on your page width, you can adjust the number of spaces in [] ), the fix may be a way to remove the extra space after each list item.

1. 學而時習之、不亦說乎。有朋自遠方來、不亦樂乎。[  ]人不知而不慍、不亦君子乎。
2. Isn't it a pleasure to study and practice what you have learned? Isn't it
also great when friends visit from distant places? If one remains not annoyed
when he is not understood by people around him,[  ] isn't he a sage?
3. 君子安而不忘危,存而不忘亡,治而不忘亂。是以身安而國家可保也。
4. The superior man, when resting in safety, does not forget that danger may
come. When in a state of security he does not forget the possibility of
ruin. When all is orderly, he does not forget that disorder may come. Thus
his person is not endangered, and his States and all their clans are
preserved.

img_2018_05_04__15_30_07

QiangF avatar May 04 '18 07:05 QiangF

Ok, I have pushed a partial fix.

There are other places in the exporter where I sneak in newlines. I will audit these places soon. So, please leave this issue open. In the meanwhile, you may want to keep an eye out for extraneous spaces and report them here.

This is what your snippet looks like after I turn on LibreOffice Menu->View->Formattting Marks:

screenshot from 2018-05-05 11-30-49

kjambunathan avatar May 05 '18 06:05 kjambunathan