View Single Post
Old 10-19-2014, 04:34 PM   #13
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by user_none View Post
@Doitsu,

The next release of Sigil will include a "validation" plugin type. If you use it then you can set the validation results in the plugin and they'll be loaded into the validation pane in the main window. Just like what happens when you use FlightCrew. This means the results won't disappear when the plugin runner dialog is closed and you can click on the entry to go directly to the associated error line.

Here is a quick example of how you'd use it in a plugin:
Code:
def run(bk):
    bk.add_result('info', 'Section0001.xhtml', 1, 'info stuff')
    bk.add_result('warning', 'Section0001.xhtml', 3, 'warn stuff')
    bk.add_result('error', 'content.opf', 4, 'error stuff')
    return 0
Thanks that's great news! I'll check it out once the next version becomes available and will update my plugin.
Doitsu is offline   Reply With Quote