Skip to content
Snippets Groups Projects
  • Henning Glawe's avatar
    18091e70
    add setter methods for annotator field widths · 18091e70
    Henning Glawe authored
    With this, a parser can override the default field widths via
    superContext.startedParsing:
    
    def startedParsing(self, path, parser):
        # reconfigure width of SimpleMatcher name
        parser.annotator.set_formatNameWidth(42)
        # reconfigure width of source file where SimpleMatcher was defined
        parser.annotator.set_formatSourceWidth(10)
    18091e70
    History
    add setter methods for annotator field widths
    Henning Glawe authored
    With this, a parser can override the default field widths via
    superContext.startedParsing:
    
    def startedParsing(self, path, parser):
        # reconfigure width of SimpleMatcher name
        parser.annotator.set_formatNameWidth(42)
        # reconfigure width of source file where SimpleMatcher was defined
        parser.annotator.set_formatSourceWidth(10)