From 52bf8acde0c51e9c2ddba93f0c70637a381bc6d5 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Thu, 7 Nov 2013 20:41:13 +0000 Subject: [PATCH] HTMLv: hotfix for header tags git-svn-id: svn://kolibrios.org@4192 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/browser/TWB.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/programs/cmm/browser/TWB.h b/programs/cmm/browser/TWB.h index b697e2ac0b..c1c5b5429d 100644 --- a/programs/cmm/browser/TWB.h +++ b/programs/cmm/browser/TWB.h @@ -660,13 +660,18 @@ void TWebBrowser::WhatTextStyle(int left1, top1, width1) { { if (rez) text_align = ALIGN_CENTER; if (!rez) text_align = ALIGN_LEFT; + return; } if (!chTag("right")) { if (rez) text_align = ALIGN_RIGHT; if (!rez) text_align = ALIGN_LEFT; + return; } if (!chTag("h1")) || (!chTag("h2")) || (!chTag("h3")) || (!chTag("h4")) { + TextGoDown(left1, top1, width1); + IF(rez) TextGoDown(left1, top1 + 10, width1); + strcpy(#oldtag, #tag); if (rez) { if (!strcmp(#parametr, "align=")) && (!strcmp(#options,"center")) text_align = ALIGN_CENTER; @@ -678,9 +683,6 @@ void TWebBrowser::WhatTextStyle(int left1, top1, width1) { text_align = ALIGN_LEFT; b_text = 0; } - TextGoDown(left1, top1, width1); - IF(rez) TextGoDown(left1, top1 + 10, width1); - strcpy(#oldtag, #tag); return; } else