Bug 116049 - reference-mark-* tags stripped out in clipboard html
Summary: reference-mark-* tags stripped out in clipboard html
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.6.7.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Clipboard
  Show dependency treegraph
 
Reported: 2018-02-26 23:56 UTC by Johannes Wilm
Modified: 2023-03-11 03:24 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
ODT file with metadata in refmark (8.89 KB, application/vnd.oasis.opendocument.text)
2018-03-09 17:56 UTC, Johannes Wilm
Details
ODT file with metadata in refmark (8.93 KB, application/vnd.oasis.opendocument.text)
2018-03-09 18:14 UTC, Johannes Wilm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Wilm 2018-02-26 23:56:50 UTC
when copying text from LibreOffice Writer, fields such as page number or dates are marked by means of fields that hold metadata. However, reference-mark-* tags are stripped out. These tags hold valuable information, used for example by citation managers like Zotero. It would be helpful if the attributes of these tags were preserved in the HTML output.
Comment 1 Buovjaga 2018-03-09 17:43:40 UTC
Please attach a document that contains such tags. I tried with page number, but it did not have the tags in content.xml.

To inspect the clipboard I will use this in Linux:
xclip -selection clipboard -o -t text/html

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 2 Johannes Wilm 2018-03-09 17:56:17 UTC Comment hidden (obsolete)
Comment 3 Johannes Wilm 2018-03-09 17:56:33 UTC
Hey,

this is the output of xclip. Document contains one refmark created with the Zotero plugin and one page number. The page number is tagged with an sdfield-tag. The refmark "(Anderson 1991)" is not tagged.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
	<title></title>
	<meta name="generator" content="LibreOffice 5.1.6.2 (Linux)"/>
	<style type="text/css">
		@page { margin: 0.79in }
		p { margin-bottom: 0.1in; line-height: 120% }
	</style>
</head>
<body lang="en-US" dir="ltr">
<p style="margin-bottom: 0in; line-height: 100%">start(Anderson
1991)end<sdfield type=PAGE subtype=RANDOM format=PAGE>1</sdfield></p>
</body>
Comment 4 Johannes Wilm 2018-03-09 18:14:51 UTC
Created attachment 140521 [details]
ODT file with metadata in refmark
Comment 5 Buovjaga 2018-03-09 18:25:59 UTC
Yep, looked inside the content.xml and it has <text:reference-mark-start etc.

Arch Linux 64-bit
Version: 6.1.0.0.alpha0+
Build ID: b8fe96f1da2c42c04a8094ca8c57d49763b7bded
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on March 8th 2018

Arch Linux 64-bit
Version 3.6.7.2 (Build ID: e183d5b)
Comment 6 QA Administrators 2019-03-10 03:21:31 UTC Comment hidden (obsolete)
Comment 7 Johannes Wilm 2019-03-10 16:14:26 UTC
Issue still present in Version: 6.2.1.2
Build ID: 7bcb35dc3024a62dea0caee87020152d1ee96e71
CPU threads: 8; OS: Linux 4.18; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 8 QA Administrators 2021-03-10 04:04:10 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2023-03-11 03:24:45 UTC
Dear Johannes Wilm,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug