[Libreoffice-bugs] [Bug 62603] Find/Replace applies the font attributes of the first character in the 'find' match to the entire replaced string - often with undesired effects, such as losing italic or bold direct formatting

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Jan 10 12:13:03 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=62603

sdc.blanco at youmail.dk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Find/Replace affects        |Find/Replace applies the
                   |formatting in undesired     |font attributes of the
                   |ways                        |first character in the
                   |                            |'find' match to the entire
                   |                            |replaced string -  often
                   |                            |with undesired effects,
                   |                            |such as losing italic or
                   |                            |bold direct formatting
                 CC|                            |sdc.blanco at youmail.dk

--- Comment #24 from sdc.blanco at youmail.dk ---
repro  by following procedure in comment 19 and using attachment 136821

Version: 7.2.0.0.alpha0+ (x64)
Build ID: 4041c68ea59181f1c4774c356809066d2051db41
CPU threads: 8; OS: Windows 10.0 Build 19041; UI render: Skia/Vulkan; VCL: win


Additional information.

1.  Continue using "find and replace" in attachment to see that 'W' in
'Whichever' is converted from regular to italic, as well as the spaces.

2.  Start with new copy of attachment 136821,  
    search with  find: ? W 
              replace: ?  W

    Result:  get same "effect"  (i.e., entire replacement becomes italic)

3.  Change font size of question mark to 28pt, repeat test, 'W' becomes 28pt.
on replacement.

4.  In short: as noted already in comment 15, it appears that the font
attributes of the first matched character is applied to the entire replacement,
nothing to do with regex.


Have changed bug summary to be more accurate/informative....

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210110/fd6e777f/attachment.htm>


More information about the Libreoffice-bugs mailing list