https://bugs.documentfoundation.org/show_bug.cgi?id=167948
--- Comment #7 from Mike Kaganski <[email protected]> --- FTR: the following Basic code works fine in Version: 25.8.0.3 (X86_64) Build ID: ab0112984cb0c13cf3d4edd063593d096a42a1aa CPU threads: 24; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win Locale: de-DE (en_US); UI: en-US Calc: CL threaded sub insertHTML() const html = "<html><body>Comment: 38 pages, 13 figures, 6 tables. Submitted to Phys. Rev. D</body></html>" dim html_bytes (1 to Len(html)) for i = 1 to len(html) html_bytes(i) = Asc(Mid(html, i, 1)) next i viewCursor = ThisComponent.CurrentController.getViewCursor() text = viewCursor.getText() cursor = text.createTextCursorByRange(viewCursor) preNewline = text.createTextCursorByRange(viewCursor).getStart() postNewline = text.createTextCursorByRange(viewCursor).getEnd() text.insertControlCharacter(preNewline, com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK, true) text.insertControlCharacter(postNewline, com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK, true) filterName = new com.sun.star.beans.PropertyValue filterName.Name = "FilterName" filterName.Value = "HTML Document" inputStream = new com.sun.star.beans.PropertyValue inputStream.Name = "InputStream" inputStream.Value = com.sun.star.io.SequenceInputStream.createStreamFromSequence(html_bytes) cursor.insertDocumentFromURL("private:stream", array(filterName, inputStream)) preNewline.setString("") postNewline.setString("") end sub I didn't try the extension - it still requires to build it, it seems. There is still no easy way to reproduce. -- You are receiving this mail because: You are the assignee for the bug.
