logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

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

perl v5.40.0                                       2024-10-20                          HTML::Tidy5::Message(3pm)

Exports

       None.  It's all object-based.

Methods

       Almost everything is an accessor.

   new($file,$line,$column,$text)
       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: ".

Name

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

See Also