Red Hat Bugzilla – Bug 885934
RFE: option to avoid encoding tab as \t
Last modified: 2013-02-27 02:57:43 EST
Description of problem:
Publican doesn't like it when a PO file uses \t in msgids for a string which is a tab in the original DocBook XML. We should add an option to avoid encoding tab as \t, and just use tab characters. The default will still be to encode tabs, because this is how the Gettext tools behave (eg msgmerge, msgcat).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Push a POT file containing tab characters into Zanata
2. Pull a PO file from Zanata
3. Observe the representation of the tab characters in the PO's msgid and msgstr fields.
The new option (in Maven's "pull" goal) will be -Dzanata.encodeTabs, which will default to true. If the option -Dzanata.encodeTabs=false is provided, tabs should be as-is.
Implemented in https://github.com/zanata/zanata-client/commit/f462371e90caf4d28f17aa3e6246698b2d268272
VERIFIED with Zanata version 2.1-SNAPSHOT (20121214-0032)
[INFO] client API version: 2.0.0, server API version: 2.0.1