Bug 154260 - MAILMERGE loses space at the end of calculated field when merging from xlsx, works fine from ods
Summary: MAILMERGE loses space at the end of calculated field when merging from xlsx, ...
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.1.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-18 21:35 UTC by Jonathan Kamens
Modified: 2023-11-01 03:14 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Kamens 2023-03-18 21:35:48 UTC
Description:
Note: I encountered this in 7.5.2.1 but that isn't available as a choice in the Version list.

1. Create a blank spreadsheet.
2. Put "c" in A1.
3. Put "=CONCAT(","," ")" in B1.
4. Save it in XLSX format.
5. Create and register a new database connected to the spreadsheet.
6. Create a new labels document, with a single synchronized label.
7. In the first label put "Before<c>After<nr>", where "<c>" is the "c" mail merge field from the database and "<nr>" is the next record field from the same database sheet.
8. Synchronize the labels.
9. Print to a mail merge file.
10. Open the resulting file.
11. Observe that it says "Before,After" instead of "Before, After", i.e., the space that should be after the comma is missing.

If you repeat all of the above steps with an ODS file instead of an XLSX file this problem does not occur.


Steps to Reproduce:
See above.

Actual Results:
See above.

Expected Results:
See above.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.5.2.1 (X86_64) / LibreOffice Community
Build ID: 50(Build:1)
CPU threads: 16; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 4:7.5.2~rc1-0ubuntu1
Calc: threaded
Comment 1 Buovjaga 2023-04-03 09:31:42 UTC
I tried this and I don't get it. You have to clarify some things.

By <nr>, I thought you meant B1 with =CONCAT(","," "). However, why do you assume it should output "Before, After" instead of "BeforecAfter"?

If I simply do your steps as you write them, I get blank output.
Comment 2 Buovjaga 2023-04-03 09:36:17 UTC
Just a note for testers as it was not explained in step 7, you need to drag into the label the columns from the view you get by activating View - Data Sources.
Comment 3 QA Administrators 2023-10-01 03:17:39 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2023-11-01 03:14:20 UTC
Dear Jonathan Kamens,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp