<commit_before><?xml version="1.0" ?>
<openerp>
    <data noupdate="1">
        <record id="financial_landscape_header" model="ir.header_webkit">
            <field name="footer_html"><![CDATA[
<html>
    <head>
        <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
        <script>
            function subst() {
            var vars={};
            var x=document.location.search.substring(1).split('&');
            for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
            var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
            for(var i in x) {
            var y = document.getElementsByClassName(x[i]);
            for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
                }
            }
        </script>
    </head>
    <% import datetime %>
    <body style="border:0; margin: 0;" onload="subst()">
        <table style="border-top: 1px solid black; width: 1080px">
            <tr style="border-collapse:collapse;">
                <td style="text-align:left;font-size:10;width:350px;">${formatLang( str(datetime.datetime.today()), date_time=True)}</td>
                <td style="text-align:center;font-size:10;width:350px;">${user.name}</td>
                <td style="text-align:right;font-size:10;width:350px;">Page&nbsp;<span class="page"/></td>
                <td style="text-align:left;font-size:10;width:30px">&nbsp;of&nbsp;<span class="topage"/></td>
            </tr>
        </table>
    </body>
</html>]]></field>
            <field name="orientation">Landscape</field>
            <field name="format">A4</field>
            <field name="html"><![CDATA[
<html>
    <head>
        <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
        <script>
            function subst() {
            var vars={};
            var x=document.location.search.substring(1).split('&');
            for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
            var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
            for(var i in x) {
            var y = document.getElementsByClassName(x[i]);
            for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
                }
            }
        </script>
        <style type="text/css">
            ${css}
        </style>
    </head>
    <body style="border:0; margin: 0;" onload="subst()">
        <table class="header" style="border-bottom: 0px solid black; width: 100%">
            <tr>
                <td style="text-align:left; font-size:11px; font-weight: bold;"><span style="text-transform:uppercase; font-size:12px;">${report_name}</span> - ${company.partner_id.name | entity} - ${company.currency_id.name | entity}</td>
            </tr>
        </table> ${_debug or ''|n} </body>
</html>]]>
            </field>
            <field eval="0.0" name="margin_top"/>
            <field name="css"><![CDATA[

body, table, td, span, div {
    font-family: Helvetica, Arial;
}

.act_as_table {
    display: table;
}
.act_as_row  {
    display: table-row;
}
.act_as_cell {
    display: table-cell;
}
.act_as_thead {
    display: table-header-group;
}
.act_as_tbody {
    display: table-row-group;
}
.act_as_tfoot {
    display: table-footer-group;
}
.act_as_caption {
    display: table-caption;
}
act_as_colgroup {
    display: table-column-group;
}

.list_table, .data_table {
    width: 1080px;
    table-layout: fixed
}

.bg, .act_as_row.labels {
    background-color:#F0F0F0;
}
<commit_msg>[FIX] account_financial_report_webkit: in landscape layout, row are split accross pages with half the line displayed on page1 and second half displayed on page2 on top of row header. This make data unreadable. See https://github.com/wkhtmltopdf/wkhtmltopdf/issues/1524<commit_after><?xml version="1.0" ?>
<openerp>
    <data noupdate="1">
        <record id="financial_landscape_header" model="ir.header_webkit">
            <field name="footer_html"><![CDATA[
<html>
    <head>
        <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
        <script>
            function subst() {
            var vars={};
            var x=document.location.search.substring(1).split('&');
            for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
            var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
            for(var i in x) {
            var y = document.getElementsByClassName(x[i]);
            for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
                }
            }
        </script>
    </head>
    <% import datetime %>
    <body style="border:0; margin: 0;" onload="subst()">
        <table style="border-top: 1px solid black; width: 1080px">
            <tr style="border-collapse:collapse;">
                <td style="text-align:left;font-size:10;width:350px;">${formatLang( str(datetime.datetime.today()), date_time=True)}</td>
                <td style="text-align:center;font-size:10;width:350px;">${user.name}</td>
                <td style="text-align:right;font-size:10;width:350px;">Page&nbsp;<span class="page"/></td>
                <td style="text-align:left;font-size:10;width:30px">&nbsp;of&nbsp;<span class="topage"/></td>
            </tr>
        </table>
    </body>
</html>]]></field>
            <field name="orientation">Landscape</field>
            <field name="format">A4</field>
            <field name="html"><![CDATA[
<html>
    <head>
        <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
        <script>
            function subst() {
            var vars={};
            var x=document.location.search.substring(1).split('&');
            for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
            var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
            for(var i in x) {
            var y = document.getElementsByClassName(x[i]);
            for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
                }
            }
        </script>
        <style type="text/css">
            ${css}
        </style>
    </head>
    <body style="border:0; margin: 0;" onload="subst()">
        <table class="header" style="border-bottom: 0px solid black; width: 100%">
            <tr>
                <td style="text-align:left; font-size:11px; font-weight: bold;"><span style="text-transform:uppercase; font-size:12px;">${report_name}</span> - ${company.partner_id.name | entity} - ${company.currency_id.name | entity}</td>
            </tr>
        </table> ${_debug or ''|n} </body>
</html>]]>
            </field>
            <field eval="0.0" name="margin_top"/>
            <field name="css"><![CDATA[

body, table, td, span, div {
    font-family: Helvetica, Arial;
}

.act_as_table {
    display: table;
}
.act_as_row  {
    display: table-row;
    page-break-inside: avoid;
}
.act_as_cell {
    display: table-cell;
}
.act_as_thead {
    display: table-header-group;
}
.act_as_tbody {
    display: table-row-group;
}
.act_as_tfoot {
    display: table-footer-group;
}
.act_as_caption {
    display: table-caption;
}
act_as_colgroup {
    display: table-column-group;
}

.list_table, .data_table {
    width: 1080px;
    table-layout: fixed
}

.bg, .act_as_row.labels {
    background-color:#F0F0F0;
}

{'fraction_non_alphanumeric': 0.18478995002026205, 'fraction_numerical': 0.01729028772119411, 'mean_word_length': 2.5408895265423244, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 2, '>': 121, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7391114', 'n_tokens_mistral': 2565, 'n_tokens_neox': 2454, 'n_words': 445}