impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TextUnit.java [452:512]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        int firstCharLocation = -1;
        int leftChar = 0; // 0=first char on left 1=\n 2=\r 3=\r\n
        int lenght = text.length();
        String leftText = null;
        for (int j = 0; j < lenght; j++)
        {
            char c = text.charAt(j);
            if (leftChar == 0)
            {
                if (c == '\r')
                {
                    leftChar = 2;
                    if (j+1 < lenght)
                    {
                        if (text.charAt(j+1) == '\n')
                        {
                            leftChar = 3;
                        }
                    }
                }
                if (c == '\n')
                {
                    leftChar = 1;
                }
            }
            if (Character.isWhitespace(c))
            {
                continue;
            }
            else
            {
                firstCharLocation = j;
                break;
            }
        }
        if (firstCharLocation == -1)
        {
            firstCharLocation = lenght;
        }
        // Define the character on the left
        if (firstCharLocation > 0)
        {
            switch (leftChar)
            {
                case 1:
                    leftText = "\n";
                    break;
                case 2:
                    leftText = "\r";
                    break;
                case 3:
                    leftText = "\r\n";
                    break;
                default:
                    leftText = (lenght > 1) ? text.substring(0,1) : text;
                    break;
            }                
        }
        else
        {
            leftText = "";
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



impl/src/main/java/org/apache/myfaces/view/facelets/compiler/TextUnit.java [585:645]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                int firstCharLocation = -1;
                int leftChar = 0; // 0=first char on left 1=\n 2=\r 3=\r\n
                int lenght = text.length();
                String leftText = null;
                for (int j = 0; j < lenght; j++)
                {
                    char c = text.charAt(j);
                    if (leftChar == 0)
                    {
                        if (c == '\r')
                        {
                            leftChar = 2;
                            if (j+1 < lenght)
                            {
                                if (text.charAt(j+1) == '\n')
                                {
                                    leftChar = 3;
                                }
                            }
                        }
                        if (c == '\n')
                        {
                            leftChar = 1;
                        }
                    }
                    if (Character.isWhitespace(c))
                    {
                        continue;
                    }
                    else
                    {
                        firstCharLocation = j;
                        break;
                    }
                }
                if (firstCharLocation == -1)
                {
                    firstCharLocation = lenght;
                }
                // Define the character on the left
                if (firstCharLocation > 0)
                {
                    switch (leftChar)
                    {
                        case 1:
                            leftText = "\n";
                            break;
                        case 2:
                            leftText = "\r";
                            break;
                        case 3:
                            leftText = "\r\n";
                            break;
                        default:
                            leftText = (lenght > 1) ? text.substring(0,1) : text;
                            break;
                    }                
                }
                else
                {
                    leftText = "";
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



