View Issue Details

IDProjectCategoryView StatusLast Update
0004520JEDI VCL00 JVCL Componentspublic2008-11-01 17:02
ReporterdarkendorfAssigned ToAHUser 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.34 
Target VersionFixed in Version3.36 
Summary0004520: JvRichEditToHtml.pas - ConvertToHtmlStrings changing font style on second character
DescriptionOn line 483, following code gives unexpected result while formatting text; it adds a character with new font style before setting up the new style, so each time the first character of a word/string is out of its own format :

        J := I;
        while (J <= Len) and not (Text[J] in [#$A, #$B, #$D]) do
        begin
          Att.Assign(Value.SelAttributes);
          if Diff(Att, CurrAt) then
          begin
            St.Append(FEndSection);
            CurrAt.Assign(Att);
            St.Append(AttToHtml(Att));
          end;

          if Text[J] in ['A'..'Z', 'a'..'z', '0'..'9'] then
            St.Append(Text[J])
          else
            St.Append(CharToHtml(Text[J]));
          Inc(J);
          Value.SelStart := J - 1;
        end;

if the word HTML is underlined in a text, it gives this : HTML
Additional InformationI solved the problem doing this :
        J := I;
        while (J <= Len) and not (Text[J] in [#$A, #$B, #$D]) do
        begin
          Att.Assign(Value.SelAttributes);
          if Diff(Att, CurrAt) then
          begin
            St.Append(FEndSection);
            CurrAt.Assign(Att);
            St.Append(AttToHtml(Att));
            Value.SelStart := J;
          end else
          begin
            if Text[J] in ['A'..'Z', 'a'..'z', '0'..'9'] then
              St.Append(Text[J])
            else
              St.Append(CharToHtml(Text[J]));
            Inc(J);
            Value.SelStart := J;
          end;
        end;
TagsNo tags attached.

Relationships

related to 0004734 resolvedAHUser Issue 0004520 isn't solved completely 

Activities

darkendorf

2008-10-10 07:55

reporter   ~0014833

This error IS present either in 3.34 or in last (10/10/2008) JVCL Daily package.

obones

2008-10-12 23:49

administrator   ~0014839

Please post the zipped sources of a sample application showing this issue.

AHUser

2008-11-01 17:02

developer   ~0014946

Fixed in SVN.

Issue History

Date Modified Username Field Change
2008-10-10 07:08 darkendorf New Issue
2008-10-10 07:55 darkendorf Note Added: 0014833
2008-10-12 23:49 obones Note Added: 0014839
2008-10-12 23:49 obones Status new => feedback
2008-11-01 17:02 AHUser Status feedback => resolved
2008-11-01 17:02 AHUser Fixed in Version => Daily / SVN
2008-11-01 17:02 AHUser Resolution open => fixed
2008-11-01 17:02 AHUser Assigned To => AHUser
2008-11-01 17:02 AHUser Note Added: 0014946
2009-04-09 14:52 obones Relationship added related to 0004734