Issue 124083 - Adding new line while importing a document from URL using XDocumentInsertable interface
Summary: Adding new line while importing a document from URL using XDocumentInsertable...
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: 3.4.0
Hardware: All All
: P3 Major (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-22 13:09 UTC by jvchbabu
Modified: 2014-02-06 19:10 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Added screenshot for undestanding of the issue (8.11 KB, image/jpeg)
2014-01-22 13:39 UTC, jvchbabu
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jvchbabu 2014-01-22 13:09:48 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.
Comment 1 jvchbabu 2014-01-22 13:39:40 UTC
Created attachment 82357 [details]
Added screenshot for undestanding of the issue
Comment 2 Ariel Constenla-Haile 2014-01-22 14:08:56 UTC
(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.
Comment 3 jvchbabu 2014-01-23 07:25:07 UTC
The document I am trying to insert is html file.
Comment 4 Edwin Sharp 2014-02-06 19:10:58 UTC
Confirmed per comment 2