

def __init__(self, source_text, opts=default_options()):
    self.source_text = source_text
    self.opts = opts
    self.exception_on_tag_mismatch = opts.exception_on_tag_mismatch
    self.expand_tags = opts.expand_tags
    self.minimum_attribute_count = opts.minimum_attribute_count
    self.first_attribute_on_new_line = opts.first_attribute_on_new_line
    self.reduce_empty_tags = opts.reduce_empty_tags
    self.indent_size = opts.indent_size
    self.indent_char = opts.indent_char
    self.indent_with_tabs = opts.indent_with_tabs
    if self.indent_with_tabs:
        self.indent_char = '\t'
        self.indent_size = 1
        self.tab_size = sublime.load_settings('Preferences.sublime-settings').get('tab_size', 4)
    self.indent_level = 0
    self.singletons = '<(area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr<%= custom %>)([^>]*?)/?>(?:\\s*?</\\1>)?'
    if (not (opts.custom_singletons == '')):
        self.singletons = re.sub('<%= custom %>', ('|' + opts.custom_singletons), self.singletons)
    else:
        self.singletons = re.sub('<%= custom %>', '', self.singletons)
    self.singletons = re.compile(self.singletons, re.I)
    self.removed_css = []
    self.removed_js = []
    self.removed_comments = []

dataset/ETHPy150Open akalongman/sublimetext-codeformatter/codeformatter/lib/htmlbeautifier/__init__.py Beautifier.__init__/original