Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: b4139ed0097c70e6ac9f4bce19b4830d90a0be97 https://github.com/WebKit/WebKit/commit/b4139ed0097c70e6ac9f4bce19b4830d90a0be97 Author: Aditya Keerthi <akeer...@apple.com> Date: 2024-04-29 (Mon, 29 Apr 2024)
Changed paths: M Source/WebCore/editing/WebContentReader.h M Source/WebCore/editing/cocoa/EditorCocoa.mm M Source/WebCore/editing/cocoa/WebContentReaderCocoa.mm M Source/WebKit/WebProcess/WebPage/Cocoa/UnifiedTextReplacementController.mm Log Message: ----------- [Unified Text Replacement] Attributed string conversion introduces unexpected newlines https://bugs.webkit.org/show_bug.cgi?id=273421 rdar://126644154 Reviewed by Ryosuke Niwa. Set "InterchangeNewlines" to `NO` for unified text replacement. Introduce `FragmentCreationOptions` to control behavior. * Source/WebCore/editing/WebContentReader.h: (WebCore::createFragment): * Source/WebCore/editing/cocoa/EditorCocoa.mm: (WebCore::Editor::replaceSelectionWithAttributedString): * Source/WebCore/editing/cocoa/WebContentReaderCocoa.mm: (WebCore::createFragmentInternal): (WebCore::attributesForAttributedStringConversion): (WebCore::createFragment): (WebCore::WebContentReader::readRTFD): (WebCore::WebContentMarkupReader::readRTFD): (WebCore::WebContentReader::readRTF): (WebCore::WebContentMarkupReader::readRTF): * Source/WebKit/WebProcess/WebPage/Cocoa/UnifiedTextReplacementController.mm: (WebKit::UnifiedTextReplacementController::textReplacementSessionDidReceiveTextWithReplacementRange): Canonical link: https://commits.webkit.org/278141@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes