[upstream] Missing Data when Copying from Clipboard to Writer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LibreOffice |
Confirmed
|
Low
|
|||
libreoffice (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I have copied and pasted the webpage 'https:/
$ wget http://
{
georgi32.
webdin32.exe}
only the following text appears:
$ wget http://
{
georgi32.
webdin32.exe}
The HTML code for that text is:
<p> $ wget <a rel="nofollow" href="http://
{<wbr />andale32.<wbr />exe,arial32.<wbr />exe,arialb32.<wbr />exe,comic32.<wbr />exe,courie32.<wbr />exe,<br />
georgi32.<wbr />exe,impact32.<wbr />exe,times32.<wbr />exe,trebuc32.<wbr />exe,verdan32.<wbr />exe,<br />
webdin32.
The problem is triggered by the <wbr /> tag. Where one of these occurs in the HTML, all subsequent text is omitted until either a <br /> or a <a ...> tag is reached (and of course there may be others).
As there are 956 <wbr /> tags in this document, much of the text is missing after pasting. If the all the <wbr /> tags are removed from the page, copying and pasting works fine.
I shall be grateful for help with the problem, as it means that that with LibreOffice copying and pasting is unreliable.
Ubuntu Mate 16.04.3
lsb-release: 9.20160110ubuntu0.2
LibreOffice Writer: libreoffice-writer 1:5.1.6-
Changed in df-libreoffice: | |
importance: | Unknown → Low |
status: | Unknown → Confirmed |
summary: |
- Missing Data when Copying from Clipboard to Writer + [upstream] Missing Data when Copying from Clipboard to Writer |
Writer does not copy certain information from a webpage.
Address of webpage: http:// www.electronics andradios. com/page- used-icom- bc80.html
What was highlighted for copy as seen on web page:
ICOM BC-80 DROP IN CHARGER + ICOM 110 to 12 VOLT 1 Amp AC ADAPTER
for the ICOM IC-P2AT / IC-P2ET / IC-P3AT / IC-P4AET / IC-P4ET
for BATTERY PACKS: BP110 / BP111 / BP112 / BP113
This ICOM BC-80 drop in charger and AC power supply allows you to charge your Icom IC-P2AT or similar while it is standing up in the cradle.
Works with the following Icom models: IC-P2AT / IC-P2ET / IC-P3AT / IC-P4AET/ IC-P4ET
Note that the above text was pasted into text edit and then pasted into writer, in order to give the full text for this report.
What was copied from the web page and pasted into writer:
ICOM BC-
for the ICOM IC-
for BATTERY PACKS: BP110 / BP111 / BP112 / BP113
This ICOM BC-
Works with the following Icom models: IC-
This is the code that created the screen output: position: absolute; left:37px; top:371px; width:883px; height: 170px;" > width:505px; "> width:378px; "> height: 170px;" > br></span> for the ICOM IC-<wbr>P2AT / IC-<wbr>P2ET / IC-<wbr>P3AT / IC-<wbr>P4AET / IC-<wbr>P4ET<br>for BATTERY PACKS: BP110 / BP111 / BP112 / BP113</span></p> Normal" ><span class="C-8">Works with the following Icom models:<span class="C-7"> IC-<wbr>P2AT / IC-<wbr>P2ET / IC-<wbr>P3AT / IC-<wbr>P4AET/ IC-<wbr> P4ET<br> <br></span> </span> </p>
<table id="table_77" border="1" class="OBJ-8" style="
<col style="
<col style="
<tr style="
<td colspan="2" class="TC-1">
<p class="Normal P-6"><span class="C-7">I<span class="C-8">COM BC-<wbr>80 DROP IN CHARGER + ICOM 110 to 12 VOLT 1 Amp AC ADAPTER<
<p class="Normal P-7"><span class="C-7">This ICOM BC-<wbr>80 drop in charger and AC power supply allows you to charge your Icom IC-<wbr>P2AT or similar while it is standing up in the cradle.</span></p>
<p class="
</td>
</tr>
</table>
The problem appears to be with the <wbr> tag. Was the html parser in writer updated for this element in HTML5?
Definition and Usage www.w3schools. com/TAgs/ tag_wbr. asp
The <wbr> (Word Break Opportunity) tag specifies where in a text it would be ok to add a line-break.
Tip: When a word is too long, or you are afraid that the browser will break your lines at the wrong place, you can use the <wbr> element to add word break opportunities.
Source: http://
Another newly introduced HTML5 element is the <wbr> tag which is used to specify a break point in a very long word or string. www.html5tutori al4u.com/ wbr-element. htm
The main difference between <wbr> tag and <br> tag is that <br> element forces to break a line. On the other hand, <wbr> element breaks a line at the specified break points only if required.
http://