}
wnext(out,'\\');
wnext(out, ch);
+ if( ch == 'n' && *bp ) {
+ wnext(out, '\"');
+ wnext(out, '\n');
+ wnext(out, '\"');
+ }
}
wnext(out, '\"');
wnext(out, 0);
}
static bool goog = false;
+static bool nocmts = false;
static inline bool is_nlin(unsigned ch, uint8_t *bp)
{
while( bgets(ibfr, sizeof(ibfr), ifp) ) {
if( !prefix_is(ibfr, "msgid ") ) {
+ if( nocmts && ibfr[0] == '#' ) continue;
bputs(ibfr, ofp); ++no;
continue;
}
// if to rework google xlat output
if( getenv("GOOG") ) goog = true;
+ if( getenv("NOCMTS") ) nocmts = true;
if( !strcmp(av[1],"csv") ) { // test csv
load(stdin, 0);