Apache OpenOffice (AOO) Bugzilla – Issue 124083
Adding new line while importing a document from URL using XDocumentInsertable interface
Last modified: 2014-02-06 19:10:58 UTC
We tried to import a document from url using XDocumentInsertable interface. It is adding a new empty line after the content. The below one is the code snippet we used to import a document XDocumentInsertable xDocumentInsertable = (XDocumentInsertable) UnoRuntime.queryInterface(XDocumentInsertable.class, xTextCursor); xDocumentInsertable.insertDocumentFromURL(strFileUrl, insertArgs); It seems an bug. Please have look into this and provide a resolution. I am ready to give any information if required.
Created attachment 82357 [details] Added screenshot for undestanding of the issue
(In reply to jvchbabu from comment #1) > Created attachment 82357 [details] > Added screenshot for undestanding of the issue A screenshot does not help much. What kind of document are you trying to insert? Did you try doing it in the user interface, with "Insert" - "File"? I tried "Insert" - "File" with: a) a plain text file: it does not insert an empty paragraph at the end of the inserted document b) an HTML file: it inserts an empty paragraph So, according to this small tests, it looks like a bug in the html import.
The document I am trying to insert is html file.
Confirmed per comment 2