Skip to content
Thibaut Dupré edited this page Feb 15, 2017 · 3 revisions

Welcome to the ods-documentation wiki!

How to list non break space that prevent rst from compiling

find . -name "*.po" | xargs grep $'\xC2\xA0'|wc -l

How to replace all non break space from all .po files and replace them with standard space

find . -name "*.po"| xargs sed -i.bak $'s/\xC2\xA0/ /g'

N.B. sed doesn't work on .mo file because the encoding is different

N.B.2 you need to use \xC2\xA0 if the files are encoded in UTF-8, with a different encoding, different syntax

Clone this wiki locally