~ubuntu-branches/ubuntu/vivid/tidy/vivid-proposed

« back to all changes in this revision

Viewing changes to src/config.c

  • Committer: Bazaar Package Importer
  • Author(s): Jason Thomas
  • Date: 2008-12-24 13:25:54 UTC
  • mfrom: (0.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20081224132554-khlgxooo36p391lt
Tags: 20081224cvs-1
* New cvs snapshot
* debian/control: add debhelper ${misc:Depends} to all packages
- add versioned depend on libtidy-0.99-0 (>= 20081224cvs-1) for tidy
  (closes: #470764)
- add Homepage field
- update standards-version from 3.7.3.0 to 3.8.0.0
* debian/tidy-doc.doc-base: change section from App/Text to Web Development
* debian/tidy.postinst + tidy.preinst: set the -e flag
* debian/README.source: new, how to build source tarball from upstream
* debian/README.Debian: add urls to more documentation
  (closes: #353912)
* debian/patches/03overview-tab-size.patch: add patch to fix tab-size
  (closes: #353907)
* tidy doc has been built from same source as tidy for a while
  (closes: #364960)
* debian/rules:
  - add -xml-config to generated manpage
  - clean up generated files
  (closes: #471107)
* manpage: -latin0 options has correct info as of 20080116cvs-1
  (closes: #506394 )

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
  config.c -- read config file and manage config properties
3
3
  
4
 
  (c) 1998-2007 (W3C) MIT, ERCIM, Keio University
 
4
  (c) 1998-2008 (W3C) MIT, ERCIM, Keio University
5
5
  See tidy.h for the copyright notice.
6
6
 
7
7
  CVS Info :
8
8
 
9
9
    $Author: arnaud02 $ 
10
 
    $Date: 2007/08/13 16:27:26 $ 
11
 
    $Revision: 1.109 $ 
 
10
    $Date: 2008/06/18 20:18:54 $ 
 
11
    $Revision: 1.111 $ 
12
12
 
13
13
*/
14
14
 
313
313
  { TidyDecorateInferredUL,      MU, "decorate-inferred-ul",        BL, no,              ParseBool,         boolPicks       },
314
314
  { TidyPreserveEntities,        MU, "preserve-entities",           BL, no,              ParseBool,         boolPicks       },
315
315
  { TidySortAttributes,          PP, "sort-attributes",             IN, TidySortAttrNone,ParseSorter,       sorterPicks     },
316
 
  { TidyMergeSpans,               MU, "merge-spans",                IN, TidyAutoState,   ParseAutoBool,     autoBoolPicks   },
 
316
  { TidyMergeSpans,              MU, "merge-spans",                 IN, TidyAutoState,   ParseAutoBool,     autoBoolPicks   },
 
317
  { TidyAnchorAsName,            MU, "anchor-as-name",              BL, yes,             ParseBool,         boolPicks       },
317
318
  { N_TIDY_OPTIONS,              XX, NULL,                          XY, 0,               NULL,              NULL            }
318
319
};
319
320
 
481
482
            TEST_USERTAGS(TidyBlockTags,tagtype_block);
482
483
            TEST_USERTAGS(TidyEmptyTags,tagtype_empty);
483
484
            TEST_USERTAGS(TidyPreTags,tagtype_pre);
 
485
        default:
 
486
            break;
484
487
        }
485
488
    }
486
489
    return ret;
488
491
 
489
492
static void ReparseTagDecls( TidyDocImpl* doc, uint changedUserTags  )
490
493
{
491
 
#define REPARSE_USERTAGS(USERTAGTYPE) \
 
494
#define REPARSE_USERTAGS(USERTAGOPTION,USERTAGTYPE) \
492
495
    if ( changedUserTags & USERTAGTYPE ) \
493
496
    { \
494
497
        TY_(FreeDeclaredTags)( doc, USERTAGTYPE ); \
495
 
        ReparseTagType( doc, USERTAGTYPE ); \
 
498
        ReparseTagType( doc, USERTAGOPTION ); \
496
499
    }
497
 
    REPARSE_USERTAGS(TidyInlineTags);
498
 
    REPARSE_USERTAGS(TidyBlockTags);
499
 
    REPARSE_USERTAGS(TidyEmptyTags);
500
 
    REPARSE_USERTAGS(TidyPreTags);
 
500
    REPARSE_USERTAGS(TidyInlineTags,tagtype_inline);
 
501
    REPARSE_USERTAGS(TidyBlockTags,tagtype_block);
 
502
    REPARSE_USERTAGS(TidyEmptyTags,tagtype_empty);
 
503
    REPARSE_USERTAGS(TidyPreTags,tagtype_pre);
501
504
}
502
505
 
503
506
void TY_(ResetConfigToDefault)( TidyDocImpl* doc )