DOKK / manpages / debian 11 / libhtml-tidy5-perl / HTML::Tidy5::Message.3pm.en
HTML::Tidy5::Message(3pm) User Contributed Perl Documentation HTML::Tidy5::Message(3pm)

HTML::Tidy5::Message - Message object for the Tidy functionality

None. It's all object-based.

Almost everything is an accessor.

Create an object. It's not very exciting.

$file can be "undef" or an empty string, in which case it will not appear in messages.

as_string()

Returns a nicely-formatted string for printing out to stdout or some similar user thing.

file()

Returns the filename of the error, as set by the caller.

type()

Returns the type of the error. This will either be "TIDY_ERROR", or "TIDY_WARNING".

line()

Returns the line number of the error, or 0 if there isn't an applicable line number.

column()

Returns the column number, or 0 if there isn't an applicable column number.

text()

Returns the text of the message. This does not include a type string, like "Info: ".

Copyright 2005-2018 Andy Lester.

This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License v2.0.

Andy Lester, "<andy@petdance.com>"

2020-11-08 perl v5.32.0