@classmethod
def beautifyTextInHTML(cls, html, indent=2, encoding=None):
    """Beautifying CSS within the ``<style></style>`` tag.  HTML
        comments(s) (i.e. ``<!-- ... -->``) within the `style tag`, if any,
        will be moved to the end of the tag block.

        **Note**: The function assumes tag ``<style>`` the first
        element in a new line containing the tag (except for whitespace).
        Indention of the `style` block will be the indent of ``<style>`` tag
        plus one ``indent`` of current indentation

        :param html:      html as string
        :param indent:    width of indentation for embedded CSS in HTML
        :returns:         html with CSS beautified (i.e. text
                          within ``<style>...</style>``)

        >>> # pretty print css
        >>> from html5print import CSSBeautifier
        >>> html = '''<html><body>
        ...   <style>
        ...     .para { margin: 10px 20px; }
        ... <!-- This is what the function is dealing with-->
        ... p { color: red; font-style: normal; }
        ...   </style>
        ... </body></html>'''
        >>> print(CSSBeautifier.beautifyTextInHTML(html))
        <html><body>
          <style>
            .para {
              margin              : 10px 20px;
            }
            p {
              color               : red;
              font-style          : normal;
            }
            <!-- This is what the function is dealing with-->
          </style>
        </body></html>

        >>> # <style> not the first element, no pretty print
        >>> from html5print import CSSBeautifier
        >>> html = '''<html><body><style>
        ...     .para { margin: 10px 20px; }
        ... <!-- This is what the function is dealing with-->
        ... p { color: red; font-style: normal; }
        ...   </style>
        ... </body></html>'''
        >>> print(CSSBeautifier.beautifyTextInHTML(html))
        <html><body><style>
            .para { margin: 10px 20px; }
        <!-- This is what the function is dealing with-->
        p { color: red; font-style: normal; }
          </style>
        </body></html>
        """
    return cls._findAndReplace(html, cls.reIndentAndStyle, cls.beautify, (
        indent,), indent)
