Merge pull request #298 from mcepl/dont_mangle_output_filename

Don't mangle the output filename
This commit is contained in:
Geoff McLane 2015-11-14 15:18:07 +01:00
commit fdaa812c5f
1 changed files with 4 additions and 1 deletions

View File

@ -929,7 +929,10 @@ Bool TY_(ParseConfigValue)( TidyDocImpl* doc, TidyOptionId optId, ctmbstr optval
TidyBuffer inbuf; /* Set up input source */
tidyBufInitWithAllocator( &inbuf, doc->allocator );
tidyBufAttach( &inbuf, (byte*)optval, TY_(tmbstrlen)(optval)+1 );
doc->config.cfgIn = TY_(BufferInput)( doc, &inbuf, ASCII );
if (optId == TidyOutFile)
doc->config.cfgIn = TY_(BufferInput)( doc, &inbuf, RAW );
else
doc->config.cfgIn = TY_(BufferInput)( doc, &inbuf, ASCII );
doc->config.c = GetC( &doc->config );
status = option->parser( doc, option );